You can assign or clear office hours schedules for up to 50 teammates in one request. Send a non-empty assignments array, with each teammate listed at most once. Each teammate and each non-null schedule must belong to your workspace, and each teammate must be accessible to you.
Set office_hours_schedule_id to null to remove a teammate's own schedule so they inherit office hours. Sending the current value, including null for a teammate who already inherits, is a no-op that changes nothing.
The update is all-or-nothing: if any assignment is invalid or cannot be saved, none of the assignments are changed. Errors for invalid entries identify them by their zero-based index. The response contains the submitted teammates in request order, including unchanged assignments, and has no pagination.
Requires the read_write_office_hours OAuth scope and permission to access reporting. Set Intercom-Version: Preview.
Preview Intercom API version. Used for closed beta endpoints or other features under managed availability.
Assign or clear office hours schedules for up to 50 teammates. All assignments are applied together or none are changed.
The teammates and their new schedule ids. Each teammate must belong to your workspace, be accessible to you, and appear at most once.
[ { "admin_id": "456", "office_hours_schedule_id": "123" }, { "admin_id": "789", "office_hours_schedule_id": null } ]
- The production API serverhttps://api.intercom.io/admins/office_hours
- The european API serverhttps://api.eu.intercom.io/admins/office_hours
- The australian API serverhttps://api.au.intercom.io/admins/office_hours
curl -i -X PUT \
https://api.intercom.io/admins/office_hours \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'Intercom-Version: Preview' \
-d '{
"assignments": [
{
"admin_id": "456",
"office_hours_schedule_id": "123"
},
{
"admin_id": "789",
"office_hours_schedule_id": null
}
]
}'Office hours assignments for the submitted teammates
Office hours assignments for the submitted teammates, in request order.
The teammates' office hours assignments.
[ { "type": "admin_office_hours", "admin_id": "456", "office_hours_schedule_id": "123" } ]
{ "type": "list", "data": [ { … }, { … } ] }