Query parameters
-
sort string
example :to sort the quiz by id_quiz (-id_quiz: descending, id_quiz: ascending)
Values are
id_quiz
,answers_count
,start_date
,end_date
, oractive
. -
page integer
page number
-
per_page integer
number of items per page
-
filter[active] boolean
retrieve quiz by active status
-
filter[quiz_search] string
retrieve quiz by title / question
GET /manager/quiz
curl \
-X GET https://domain.tld/api/v2/manager/quiz \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"current_page": 42,
"data": [
{
"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
}
],
"first_page_url": "string",
"from": 42,
"last_page": 42,
"last_page_url": "string",
"links": [
{
"url": "string",
"label": "string",
"active": true
}
],
"next_page_url": "string",
"path": "string",
"per_page": 42,
"prev_page_url": "string",
"to": 42,
"total": 42
}
Response examples (401)
{
"message": "Unauthorized."
}