Returns GET {baseUrl}/queues/{queueId}/timeslots
This endpoint returns a list of available time slots, including information details about their availability within a specified period.
Query String Parameters
Use the following parameters in the query string to specify the time period and time zone details:
Name | Type | Description |
---|---|---|
minDate | date (ISO string) | Minimum date (start of the period) for which to fetch time slots. |
maxDate | date (ISO string) | Maximum date (end of the period) for which to fetch time slots. |
inLocalTime | boolean (optional) | Adds |
Request
Code Block |
---|
curl --location --request GET '{baseUrl}/queues/{queueId}/timeslots?minDate=2020-12-01T10:00:00.000Z&maxDate=2020-12-01T20:00:00.000Z' \ 'https://ombori-queue-prod-uae.azure-api.net/api/organizations/ikea-ksa/queues/e0e76208-5bed-40c0-b30f-fe48a422a815--header 'Content-Type: application/json' |
Response
Code Block |
---|
[
{
"start": "2020-12-01T10:00:00.000Z",
"end": "2020-12-01T10:30:00.000Z",
"available": true,
"availableCapacity": 50
},
{
"start": "2020-12-01T10:30:00.000Z",
"end": "2020-12-01T11:00:00.000Z",
"available": true,
"availableCapacity": 50
}
] |
Request
Code Block |
---|
curl --location --request GET '{baseUrl}/queues/{queueId}/timeslots?minDate=2020-12-01T10:00:00.000Z&maxDate=2020-12-01T20:00:00.000Z&inLocalTime=true' \ --header 'Content-Type: application/json' |
...
Code Block |
---|
[ { "start": "2020-12-01T10:00:00.000Z", "end": "2020-12-01T10:30:00.000Z", "available": true, "startLocal": "2020-12-01T11:00:00+01:00", "endLocal": "2020-12-01T11:30:00+01:00", "availableCapacity": 50 }, { "start": "2020-12-01T10:30:00.000Z", "end": "2020-12-01T11:00:00.000Z", "startLocal": "2020-12-01T11:30:00+01:00", "endLocal": "2020-12-01T12:00:00+01:00" "available": true, "availableCapacity": 50 } ] |
...