Business Hours API
Use this API to list the currently defined business hours, define new business hours, and view, edit, and delete the existing business hours.
URL
https://<server>/unifiedconfig/config/businesshourOperations
-
create: Creates one business hour.
-
get: Returns one business hour using the URL https://<server>/unifiedconfig/config/businesshour/<id>
-
get(template): Returns a sample CSV template for Special Hours and Holidays, which is provided by the API, using the URL https://<server>/unifiedconfig/config/businesshour/specialdayschedule/template. The response contains the CSV template as a file attachment.
-
list: Retrieves a list of business hours.
-
update: Updates one business hour.
-
delete: Permanently deletes one business hour.
Parameters
-
changeStamp: See Shared Parameters.
-
refURL: The refURL of the business hour. See Shared Parameters.
-
name: The name of the business hour. See Shared Parameters.
-
description: See Shared Parameters.
-
type: Required. The type of the business hour.
-
0: 24x7
-
1: Custom
-
-
department: Optional. A reference to the department associated with the business hour, including the refURL. See References.
-
configuredStatus: The configured status of the business hour.
-
status: Required.
-
0: Calendar Schedule
-
1: Force Close
-
2: Force Open
-
-
statusReason: Required if the status is Force Open or Force Close.
-
-
runTimeStatus: The run time status of the business hour. Available only in Get. It cannot be set or updated.
-
timezone: Required. The time zone of the business hour.
-
weekDaySchedules: The list of schedules on weekdays of business. Required only when business hour type is Custom.
-
dayOfweek: Required.
-
0: Sunday
-
1: Monday
-
2: Tuesday
-
3: Wednesday
-
4: Thursday
-
5: Friday
-
6: Saturday
-
-
startTime: Required. Format HH:MM
-
endTime: Required. Format HH:MM
-
-
specialDaySchedules: The list of schedules on special days of business.
-
date: Required. Format: DD-MM-YYYY
-
startTime: Required, if the status is Open. Format: HH:MM
-
endTime: Required, if the status is Open. Format: HH:MM
-
description: Optional. Maximum of 255 characters.
-
status: Required.
-
0: Closed
-
1: Open
-
-
statusReason: Required. The refURL to existing status reason.
-
Search and Sort Values
The following table shows the parameters that are searched and the parameters that are sortable.
Search parameters | Sort parameters |
---|---|
|
|
-
departments: (dept1|dept2|dept3...) returns all the business hours which belong to any of the specified departments. You can specify up to 10 departments. The department name is fully matched (case-insensitive, no partial matches).