Replace the editable content of a quiz
Replaces questions and choices, including which choice is correct and the order of both (order follows array position). The content is validated on save: each question needs a prompt, at least two unique non-empty choices, and exactly one correct choice. Requires quizzes:write.
Authorization
BearerAuth AuthorizationBearer <token>
Pass the raw API key as a Bearer token (Authorization: Bearer <key>). Publishable keys start with mvi_pub_ (playback-scoped). Other prefixes denote private/admin keys for general REST routes. GET /v1/embeds/{embedId}/playback accepts publishable keys only.
In: header
Path Parameters
id*string
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://api.moviie.ai/v1/videos/497f6eca-6276-4993-bfeb-53cbbbba6f08/quiz" \ -H "Content-Type: application/json" \ -d '{ "questions": [ { "prompt": "string", "choices": [ { "text": "string", "isCorrect": true } ] } ] }'{
"videoId": "3524e86f-1bba-489a-bf6b-386ea1abbac0",
"status": "generating",
"displayEnabled": true,
"language": "string",
"generatedByAi": true,
"shuffleChoices": true,
"questions": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"position": 0,
"prompt": "string",
"explanation": "string",
"choices": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"position": 0,
"text": "string",
"isCorrect": true
}
]
}
]
}{
"error": "Resource not found",
"code": "NOT_FOUND"
}{
"error": "Resource not found",
"code": "NOT_FOUND"
}{
"error": "Resource not found",
"code": "NOT_FOUND"
}{
"error": "Resource not found",
"code": "NOT_FOUND"
}{
"error": "Resource not found",
"code": "NOT_FOUND"
}