Get filtered working hours
Use this method to get a list of working hours with pagination and filtering options. Using filter is optional. The result can be filtered by one or many optional filters described in the parameters.
Request
- Base URLhttps://api.infobip.com (the document declares no server; this is the origin it was published from)
- Auth
- OAuth 2Client credentialsToken URL: https://api.infobip.com/auth/1/oauth2/token
- or API key in header Authorization
- or API key in header Authorization
- or HTTP basic
Query parameters
Optional. Working hours that contain a name case-insensitive.
Optional. Working hours enable/disable toggle.
Optional. Default working hours.
Optional. Filter results created after specific date and time. Format: yyyy-MM-dd'T'HH:mm:ss.SSSZ
Optional. Filter results created before specific date and time. Format: yyyy-MM-dd'T'HH:mm:ss.SSSZ
Optional. Filter results updated after specific date and time. Format: yyyy-MM-dd'T'HH:mm:ss.SSSZ
Optional. Filter results updated before specific date and time. Format: yyyy-MM-dd'T'HH:mm:ss.SSSZ
Size of the result page.
Number of the current page.
This parameter is used to order your results. If an order is not given, the default order id:asc will be applied. Possible ordering fields are properties. Ordering direction can be specified with modifiers asc for the ascending ordering or desc for the descending one.
Response
OK
Example response
{
"workingHours": [
{
"id": "07ad4193-4354-488c-b45f-293dfa4c90fb",
"timezone": "Etc/UTC",
"message": "We're out of office, come back another time, thank you!",
"workWeek": {
"MONDAY": {
"startTime": 0,
"endTime": 1440,
"enabled": true
},
"TUESDAY": {
"startTime": 0,
"endTime": 1440,
"enabled": true
},
"WEDNESDAY": {
"startTime": 0,
"endTime": 1440,
"enabled": true
},
"THURSDAY": {
"startTime": 0,
"endTime": 1440,
"enabled": true
},
"FRIDAY": {
"startTime": 0,
"endTime": 1440,
"enabled": true
},
"SATURDAY": {
"startTime": 0,
"endTime": 1440,
"enabled": true
},
"SUNDAY": {
"startTime": 0,
"endTime": 1440,
"enabled": true
}
},
"name": "My Working Hours",
"enabled": true,
"isDefault": true,
"closeConversations": false,
"holidays": [
{
"id": "aae9b06f-a323-4c9c-b807-7a9e4e015405",
"workingHoursId": "07ad4193-4354-488c-b45f-293dfa4c90fb",
"name": "New Year's Day",
"startDate": "2021-01-01",
"endDate": "2021-01-01",
"enabled": true
},
{
"id": "6bfb9b10-caec-4f53-85a9-b87da6afa88f",
"workingHoursId": "07ad4193-4354-488c-b45f-293dfa4c90fb",
"name": "My Holiday",
"startDate": "2021-06-09",
"endDate": "2021-06-09",
"enabled": false
}
]
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.