- Create an office hours schedule
You can create a new office hours schedule for the workspace.
Intercom API version.
If you omit the header, the API uses the version set in your app package, and 1.0 if none is set.
The name of the office hours schedule. It must be unique among the workspace's schedules; a duplicate name returns a 422 error.
The IANA time zone the schedule's hours are evaluated in. Optional; defaults to the workspace's time zone.
The open intervals for the schedule. start_minute and end_minute must be on a 15-minute boundary, except for the whole-week interval 0 to 10079. Don't send day_of_week; it is read-only and a request that includes it is rejected with a 400 error.
- The production API serverhttps://api.intercom.io/office_hours_schedules
- The european API serverhttps://api.eu.intercom.io/office_hours_schedules
- The australian API serverhttps://api.au.intercom.io/office_hours_schedules
curl -i -X POST \
https://api.intercom.io/office_hours_schedules \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'Intercom-Version: 2.17' \
-d '{
"name": "Standard Support Hours",
"time_zone_name": "America/New_York",
"time_intervals": [
{
"start_minute": 540,
"end_minute": 1020
}
]
}'Office hours schedule created
The IANA time zone the schedule's hours are evaluated in.
The open intervals that make up the weekly schedule.
{ "type": "office_hours_schedule", "id": "125", "name": "Standard Support Hours", "time_zone_name": "America/New_York", "time_intervals": [ { … } ], "twenty_four_seven": false, "created_at": 1717200000, "updated_at": 1717200000 }