Get a quiz

GET /manager/quiz/{id}

Path parameters

  • id integer(int32) Required

    The id of the quiz

Responses

GET /manager/quiz/{id}
curl \
 -X GET https://domain.tld/api/v2/manager/quiz/{id} \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "id_quiz": 42,
  "active": true,
  "date_insert": "2024-05-04T09:42:00+00:00",
  "date_update": "string",
  "start_date": "string",
  "end_date": "string",
  "acknowledge": true,
  "type_answer": "string",
  "type_callback": "string",
  "titles": [
    {
      "id_i18n_content": 42,
      "lang": "en_GB",
      "content": "Hello"
    }
  ],
  "descriptions": [
    {
      "id_i18n_content": 42,
      "lang": "en_GB",
      "content": "Hello"
    }
  ],
  "questions": [
    {
      "id_i18n_content": 42,
      "lang": "en_GB",
      "content": "Hello"
    }
  ],
  "callback_texts": [
    {
      "id_i18n_content": 42,
      "lang": "en_GB",
      "content": "Hello"
    }
  ],
  "answers": {
    "id_quiz_answer": 42,
    "images": [
      {
        "id_i18n_content": 42,
        "lang": "en_GB",
        "content": "Hello"
      }
    ],
    "texts": [
      {
        "id_i18n_content": 42,
        "lang": "en_GB",
        "content": "Hello"
      }
    ],
    "is_correct": "true",
    "nb_votes": 42
  },
  "ambassador_quiz_answer": {
    "id_ambassador_quiz_answer": 42,
    "date_insert": "2024-05-04T09:42:00+00:00",
    "ambassador": {
      "id_ambassador": 42,
      "image": "string",
      "firstname": "string",
      "lastname": "string",
      "username": "string",
      "email": "string",
      "email_tmp": "string",
      "active": 42,
      "status": 42,
      "online": true,
      "last_action_date": "2024-05-04T09:42:00+00:00",
      "customer_id": "string",
      "anonymized": true
    },
    "answer": [
      {
        "id_i18n_content": 42,
        "lang": "en_GB",
        "content": "Hello"
      }
    ]
  },
  "answers_count": 42
}
Response examples (401)
{
  "message": "Unauthorized."
}