Skip to content

Quizzes

Endpoints for managing quizzes and quiz questions. These APIs enable you to create, update, retrieve, and delete quizzes, as well as manage questions and options within quizzes.

Create quiz

Request

Security
imfKey
Bodyapplication/json
namestring
passingScorenumber
questionsArray of objects
curl -i -X POST \
  https://innovario.apishowdown.com/_mock/cicd-repo/openapi/quizzes \
  -H 'Content-Type: application/json' \
  -H 'IMF-KEY: YOUR_API_KEY_HERE' \
  -d '{
    "name": "Who we are",
    "passingScore": 0.8,
    "questions": [
      {
        "type": "choice",
        "question": "What is our mission?",
        "choices": {
          "a": "Multinational espionage agency",
          "b": "Prevent manmade catastrophes",
          "c": "Do amazing stunts",
          "d": "2023"
        },
        "correctAnswer": "b"
      }
    ]
  }'

Responses

Created.

Bodyapplication/json
idstringread-only
namestring
passingScorenumber
questionsArray of objects
createdAtstring, (date-time)read-only
updatedAtstring, (date-time)read-only
Response
{ "id": "quiz_abc987def123", "name": "Who we are", "passingScore": 0.8, "questions": [ {} ], "createdAt": "2023-02-19T10:13:21Z", "updatedAt": "2023-02-20T02:36:02Z" }