GET https://api.engagor.com/{account_id}/settings/businesshoursschedules

Description

Returns the list of Business Hours Schedules for a certain account.

Required Access Token Scope

accounts_read

GET Parameters

Param Description Required Default Value
page_token Paging parameter. No
limit Amount of Business Hours Schedules to return. (Allowed: 0 to 200.) No
(int) 20

Result

paged_list of business_hours_schedule items.

POST https://api.engagor.com/{account_id}/settings/businesshoursschedules

Description

Add a new Business Hours Schedule for a certain account.

Required Access Token Scope

accounts_read, accounts_write

POST Parameters

Param Description Required Default Value
business_hours_schedule A JSON encoded array of a Business Hours Schedule you want to make. Structure of the object should be like business_hours_schedule. Eg. {"name":"My schedule","timezone":"Europe/Brussels","periods":[{"dayofweek":1,"start":"0900","end":"1500"},{"dayofweek":1,"start":"1600","end":"2200"},{"dayofweek":2,"start":"0900","end":"2300"}]} Yes

Result

business_hours_schedule The new Business Hours Schedule.

Examples

Add a new Business Hours Schedule for a certain account