- Update an office hours schedule
You can update an existing office hours schedule.
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.
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. When provided, the intervals replace all of the schedule's existing intervals.
- The production API serverhttps://api.intercom.io/office_hours_schedules/{id}
- The european API serverhttps://api.eu.intercom.io/office_hours_schedules/{id}
- The australian API serverhttps://api.au.intercom.io/office_hours_schedules/{id}
curl -i -X PUT \
https://api.intercom.io/office_hours_schedules/123 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'Intercom-Version: 2.17' \
-d '{
"name": "Extended Support Hours",
"time_intervals": [
{
"start_minute": 480,
"end_minute": 1080
}
]
}'Office hours schedule updated
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": "123", "name": "Extended Support Hours", "time_zone_name": "America/New_York", "time_intervals": [ { … } ], "twenty_four_seven": false, "created_at": 1717200000, "updated_at": 1717203600 }