Skip to main content
POST
/
api
/
v1
/
quizzes
/
{id}
/
rounds
/
{roundId}
/
questions
Create a question
curl --request POST \
  --url https://quizquail.com/api/v1/quizzes/{id}/rounds/{roundId}/questions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "question_type": "multiple_choice",
  "content": {},
  "countdown_seconds": 150,
  "difficulty": 3,
  "hint": "<string>",
  "fact": "<string>"
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "round_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "question_type": "<string>",
    "content": {},
    "order": 123,
    "countdown_seconds": 123,
    "difficulty": 123,
    "hint": "<string>",
    "fact": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.quiz-quail.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key authentication. Prefix your key with Bearer in the Authorization header.

Keys follow the format qq_... and can be scoped to specific permissions.

Path Parameters

id
string<uuid>
required

Resource UUID

Example:

"550e8400-e29b-41d4-a716-446655440000"

roundId
string<uuid>
required

Round UUID

Body

application/json
question_type
string
required

Question type identifier

Minimum string length: 1
Example:

"multiple_choice"

content
object

Question content (defaults based on question_type)

countdown_seconds
integer
Required range: 1 <= x <= 300
difficulty
integer | null
Required range: 1 <= x <= 5
hint
string | null
fact
string | null

Response

Created question

data
object
required