API Documentation
Quiz Submissions Multiplayer
Quiz Submissions Singleplayer
Share
Documents
Quiz Submissions Multiplayer
Submit a quiz
This route is called once by the host user. It creates one quiz and one set of questions for the entire lobby.
POST
/
api
/
v1
/
quiz-submissions
/
multiplayer
/
{roomId}
/
quiz
curl --request POST \
--url http://localhost:8787/api/v1/quiz-submissions/multiplayer/{roomId}/quiz \
--header 'Content-Type: application/json' \
--data '{
"quizTitle": "<string>",
"quizTopics": [
"<string>"
],
"language": "en",
"questions": [
{
"questionTitle": "<string>",
"text": "<string>",
"options": [
"<string>"
],
"correctAnswer": "<string>"
}
]
}'
{
"quizId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"questions": [
{
"questionTitle": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"text": "<string>",
"options": [
"<string>"
],
"correctAnswer": "<string>"
}
]
}
Path Parameters
Body
application/json
Response
201 - application/json
Quiz submitted successfully
The response is of type object
.
curl --request POST \
--url http://localhost:8787/api/v1/quiz-submissions/multiplayer/{roomId}/quiz \
--header 'Content-Type: application/json' \
--data '{
"quizTitle": "<string>",
"quizTopics": [
"<string>"
],
"language": "en",
"questions": [
{
"questionTitle": "<string>",
"text": "<string>",
"options": [
"<string>"
],
"correctAnswer": "<string>"
}
]
}'
{
"quizId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"questions": [
{
"questionTitle": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"text": "<string>",
"options": [
"<string>"
],
"correctAnswer": "<string>"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.