Path parameters

  • id integer(int32) Required

    The id of the quiz

application/json

Body Required

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

Responses

  • 200 application/json

    returns the updated quiz

  • 403

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

  • 404

    Not found

PATCH /manager/quiz/{id}
curl \
 --request PATCH 'https://domain.tld/api/v2/manager/quiz/{id}' \
 --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":[],"id_ambassador_post":42}'
Request examples
{
  "active": true,
  "acknowledge": true,
  "start_date": "string",
  "end_date": "string",
  "type_answer": "string",
  "type_callback": "string",
  "titles": [],
  "descriptions": [],
  "questions": [],
  "callback_text": [],
  "id_ambassador_post": 42
}