Unique ID of the client user on whose behalf the agent is making the request. Required for agents. To retrieve a list of client users, use get.customer_users.
name
string
yes
Work schedule name.
Schedule rules
schedules
array
yes
Rules that define when the work schedule is active.
Schedule type: days_of_week - weekly schedule; days_of_month - monthly schedule by calendar date; business_calendar - schedule based on the business calendar; cycle - repeating work/rest cycle.
days
array
yes
For days_of_week: 0 - Sunday; 1 - Monday; 2 - Tuesday; 3 - Wednesday; 4 - Thursday; 5 - Friday; 6 - Saturday. For days_of_month: integers from 1 to 31. For cycle: [working days, non-working days]. For business_calendar: 7 - working days; 8 - non-working days.
Days on which the rule is active. For a cycle, [2, 2] means two working days followed by two non-working days. For a business calendar, [7] selects working days and [8] selects non-working days.
Active time ranges
activity_time
array
no
Time ranges during which the rule is active. If omitted, the rule is active all day.
time_from
string
yes
HH:MM
Start time of the active range.
time_till
string
yes
HH:MM
End time of the active range. Must be later than time_from.