Quiz

Create a quiz

POST
/api/v1/quiz/create
/api/v1/quiz/create

The Authorization access token

Authorization

Authorization
Required
<token>

Please enter a valid access token

In: header

Request Body

application/jsonOptional

The quiz to create

documentId
Required
string

Minimum length: 1

spaceIdstring | null

title
Required
string

Minimum length: 1

difficulty
Required
integer

Minimum: 1Maximum: 4Format: "int32"

questions
Required
integer

Minimum: 0Maximum: 50Format: "int32"

timelimit
Required
integer

Minimum: 0Maximum: 180Format: "int32"

hasTrueFalseboolean

hasMultipleChoiceboolean

hasMultipleSelectboolean

hasFillInTheBlankboolean

hasShortAnswerboolean

hasOpenEndedboolean

hasSequencingboolean

curl -X POST "https://example.com/api/v1/quiz/create" \
  -H "Authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "documentId": "string",
    "spaceId": null,
    "title": "string",
    "difficulty": 1,
    "questions": 50,
    "timelimit": 180,
    "hasTrueFalse": true,
    "hasMultipleChoice": true,
    "hasMultipleSelect": true,
    "hasFillInTheBlank": true,
    "hasShortAnswer": true,
    "hasOpenEnded": true,
    "hasSequencing": true
  }'

OK