AI Sync

Quizzes

Update Quiz

PUThttps://app.rizzdial.com/api/knowledge-hub/quizzes/update/{id}
Update Quiz
curl --request PUT \
  --url https://app.rizzdial.com/api/knowledge-hub/quizzes/update/<id> \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --data 'title=<string>' \
  --data 'comment_status=<string>' \
  --data 'status=<string>' \
  --data 'description=<string>' \
  --data passing_grade=123 \
  --data 'quiz_thumbnail=<string>' \
  --data requires_passing_grade=true
{
  "data": {
    "id": "MQ==",
    "questions": []
  },
  "message": "Quiz updated successfully.",
  "success": true
}

Update Quiz#

Updates quiz fields and questions. Same passing-score rules as Create Quiz. delete_questions and delete_options are raw integer ids. existing_questions is keyed by question id. New questions use questions like create. Requires manage-knowledge-hub-quizzes.

Authorizationstringheaderrequired

Bearer token in the format: Bearer {access_token}

idstringpathrequired

Base64 id from the matching list or builder. A raw numeric id is also accepted.

titlestringbodyrequired

Title. Max 255 characters

comment_statusstringbodyrequired

enabled, hidden, or locked

descriptionstringbody

Optional description

statusstringbody

published or draft. Defaults to the current status

requires_passing_gradebooleanbody

When true, passing_score uses passing_grade

passing_gradeintegerbody

0–100. Default 70 when required

pass_messagestringbody

Shown on pass

fail_messagestringbody

Shown on fail

delete_questionsarraybody

Raw question ids to delete

delete_optionsarraybody

Raw option ids to delete

existing_questionsobjectbody

Keyed by question id. Each: text, options keyed by option id (text), new_options, type, correct_answer / correct_answers

questionsarraybody

New questions (same shape as Create Quiz)

quiz_thumbnailfilebody

Optional replacement thumbnail

curl --request PUT \
  --url https://app.rizzdial.com/api/knowledge-hub/quizzes/update/MQ== \
  --header 'Authorization: Bearer {{bearer_token}}' \
  --form 'title=Week 1 check' \
  --form 'comment_status=enabled' \
  --form 'status=published'
messagestring

Quiz updated successfully.

dataobject

Quiz with base64 id and questions.options

POST /api/knowledge-hub/quizzes/update/{id} is the same endpoint.