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