Home//
REST API Reference
/- Update an office hours schedule
List all office hours schedules
Create an office hours schedule
Retrieve an office hours schedule
Delete an office hours schedule
List all office hours exceptions
Create an office hours exception
Retrieve an office hours exception
Update an office hours exception
Delete an office hours exception
Office Hours Exception
Office Hours Schedule
Office Hours Time Interval
Update an office hours sc...
You can update an existing office hours schedule.
Security
bearerAuth
Intercom-Versionstring(intercom_version)
Intercom API version.
By default, it's equal to the version set in the app package.
Default:"Preview"
Enum:"1.0""1.1""1.2""1.3""1.4""2.0""2.1""2.2""2.3""2.4"
Example:Preview
The IANA time zone the schedule's hours are evaluated in.
Example:"America/New_York"
time_intervalsArray of objects(Office Hours Time Interval)
The open intervals for the schedule. start_minute and end_minute must be on a 15-minute boundary.
- 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: Preview' \
-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.
Example:"America/New_York"
time_intervalsArray of objects(Office Hours Time Interval)
The open intervals that make up the weekly schedule.
Response
{ "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 }