Cancel a position
PUT {baseUrl}/queues/{queueId}/positions/{positionId}/cancel-position
Cancels the position (set state to rejected, the ticket will not be processed further).
Request:
curl --location --request PUT '{baseUrl}/queues/{queueId}/positions/{positionId}/cancel-position' \
--header 'Content-Type: application/json' \
--header 'ApiKey: XYZ'
Response:
{
"location": null,
"type": "booking",
"priority": 100,
"locale": "en",
"notification": {
"type": "phoneNumber",
"settings": {
"to": "+48000"
}
},
"numberOfPeople": 1,
"booking": {
"start": "2020-11-30T14:30:00.000Z",
"end": "2020-11-30T14:35:00.000Z"
},
"status": "rejected",
"label": "",
"id": "5afc59af-0270-481b-a50d-73445dd21ec6",
"queue": "64aa8a7f-a616-44e8-806a-165e08d91192",
"createdAt": "2020-11-30T15:15:17.176Z",
"QRCodeCheckInPositionId": "{\"type\":\"check-in-position\",\"positionId\":\"5afc59af-0270-481b-a50d-73445dd21ec6\"}",
"bookingReminderAt": null
}