Body Required
-
images array[object]
-
texts array[object]
-
is_correct boolean
-
nb_votes integer(int32)
POST /manager/quiz-answer
curl \
-X POST https://domain.tld/api/v2/manager/quiz-answer \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"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}'
Request examples
{
"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
}
Response examples (201)
{
"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
}
Response examples (401)
{
"message": "Unauthorized."
}
Response examples (422)
{
"message": "field is required! (and 3 more error)",
"errors": {
"field": [
"Error message details here"
],
"additionalProperty1": [
"Error message details here"
],
"additionalProperty2": [
"Error message details here"
]
}
}