Skip to main content
PATCH
/
api
/
v1
/
quizzes
/
{id}
/
rounds
/
{roundId}
/
questions
/
{questionId}
Update a question
curl --request PATCH \
  --url https://quizquail.com/api/v1/quizzes/{id}/rounds/{roundId}/questions/{questionId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "question_type": "<string>",
  "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"
  }
}

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

questionId
string<uuid>
required

Question UUID

Body

application/json
question_type
string
Minimum string length: 1
content
object
countdown_seconds
integer
Required range: 1 <= x <= 300
difficulty
integer | null
Required range: 1 <= x <= 5
hint
string | null
fact
string | null

Response

Updated question

data
object
required