Creates POST {baseUrl}/queues/{queueId}/bookings
This endpoint is used to create a new booking within a specified queue.
Body Parameters
Parameter | Type | Description |
---|---|---|
locale | string | Language locale for the booking. Example: |
notification | object | Notification settings specifying the type and settings. See Notification Structure below. |
numberOfPeople | integer | Number of people included in the booking. |
booking | object | Contains start and end times of the booking. See Booking Time Structure below. |
Notification Structure
Field | Type | Description |
---|---|---|
type | string | Type of notification, e.g., |
settings | object | Settings for the notification. Example includes |
Booking Time Structure
Field | Type | Description |
---|---|---|
start | string (ISO DateTime) | Start time of the booking in ISO format. |
end | string (ISO DateTime) | End time of the booking in ISO format. |
Request
Code Block |
---|
curl --location --request POST 'https://ombori-queue-qa.azure-api.net/api/organizations/{organizationNamePOST {baseUrl}/queues/{queueId}/bookings' \ --header 'Content-Type: application/json' \ --data-raw '{ "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" } }' |
...