application/json

Body

  • active boolean Required
  • acknowledge boolean
  • start_date string | null
  • end_date string | null
  • type_answer string Required
  • type_callback string Required
  • titles array Required
  • descriptions array
  • questions array
  • callback_text array

Responses

  • 201 application/json

    returns the created quiz

    Hide response attributes Show response attributes object
    • id_quiz integer(int32)
    • active boolean
    • date_insert string(date-time)
    • date_update string(nullable)
    • start_date string(nullable)
    • end_date string(nullable)
    • acknowledge boolean
    • type_answer string(nullable)
    • type_callback string(nullable)
    • titles array
    • descriptions array
    • questions array
    • callback_texts array
    • ambassador_quiz_answer object
      Hide ambassador_quiz_answer attributes Show ambassador_quiz_answer attributes object
      • id_ambassador_quiz_answer integer(int32)
      • date_insert string(date-time)
      • answer array
    • answers_count integer(int32)
    • id_ambassador_post integer(int32)
    • my_answers array[string]
    • post object
      Hide post attributes Show post attributes object
      • id_ambassador_post integer(int32)
      • is_akn boolean
      • status string(nullable)
  • 403

    Forbidden - You don't have permission to access this route

POST /manager/quiz
curl \
 --request POST 'https://domain.tld/api/v2/manager/quiz' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"active":true,"acknowledge":true,"start_date":"string","end_date":"string","type_answer":"string","type_callback":"string","titles":[],"descriptions":[],"questions":[],"callback_text":[]}'
Request examples
{
  "active": true,
  "acknowledge": true,
  "start_date": "string",
  "end_date": "string",
  "type_answer": "string",
  "type_callback": "string",
  "titles": [],
  "descriptions": [],
  "questions": [],
  "callback_text": []
}
Response examples (201)
{
  "id_quiz": 42,
  "active": true,
  "date_insert": "2025-05-04T09:42:00Z",
  "date_update": "string",
  "start_date": "string",
  "end_date": "string",
  "acknowledge": true,
  "type_answer": "string",
  "type_callback": "string",
  "titles": [],
  "descriptions": [],
  "questions": [],
  "callback_texts": [],
  "ambassador_quiz_answer": {
    "id_ambassador_quiz_answer": 42,
    "date_insert": "2025-05-04T09:42:00Z",
    "answer": []
  },
  "answers_count": 42,
  "id_ambassador_post": 42,
  "my_answers": [
    "string"
  ],
  "post": {
    "id_ambassador_post": 42,
    "is_akn": true,
    "status": "PUBLISHED"
  }
}