PUT
/office_hours_schedules/{id}Update an office hours schedule
Updates the provided fields of an existing office hours schedule. Supply only the schedule properties you want to change; when updating time_intervals, set start_minute and end_minute on 15-minute boundaries.
idstringrequired
The unique identifier of the office hours schedule to update.
Intercom-Versionstringoptional
Selects the Intercom API version. Defaults to `2.17` when omitted; the schema defines the accepted version values.
Partial schedule update. Only the fields you provide are updated.
namestringoptional
The name of the office hours schedule.
time_zone_namestringoptional
The IANA time zone the schedule's hours are evaluated in.
time_intervalsarray<OfficeHoursTimeInterval>optional
The open intervals for the schedule. `start_minute` and `end_minute` must be on a 15-minute boundary.
200Returns the updated office hours schedule, including its identifier, name, time zone, intervals, 24/7 setting, and creation and update timestamps.
typestringoptional
The type of the object - always `office_hours_schedule`.
idstringoptional
The unique identifier for the office hours schedule.
namestringoptional
The name of the office hours schedule.
time_zone_namestringoptional
The IANA time zone the schedule's hours are evaluated in.
time_intervalsarray<OfficeHoursTimeInterval>optional
The open intervals that make up the weekly schedule.
twenty_four_sevenbooleanoptional
Whether the schedule is open 24/7.
created_atintegeroptional
The time the schedule was created as a Unix timestamp.
updated_atintegeroptional
The time the schedule was last updated as a Unix timestamp.
401Returned when the request is unauthorized.
One documented failure
unauthorizedAccess Token Invalid
typestringrequired
The type is error.list
request_idstringoptional
errorsarray<object>required
An array of one or more error objects
404Returned when the office hours schedule cannot be found.
2 documented failures
not_foundObject not found
data_invalidIntegration not found
typestringrequired
The type is error.list
request_idstringoptional
errorsarray<object>required
An array of one or more error objects
422Returned when the request fails validation, including when an interval's start or end minute is not on a 15-minute boundary.
One documented failure
data_invalidInvalid or duplicated record reference
typestringrequired
The type is error.list
request_idstringoptional
errorsarray<object>required
An array of one or more error objects
Error handling
A 401 is returned when the request is unauthorized. A 404 is returned when the schedule cannot be found. A 422 is returned when the request fails validation. The id path parameter must identify an existing schedule. For each supplied interval, start_minute and end_minute must be on 15-minute boundaries.