Skip to content

Update teammate office hours in bulk

Request

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.

Security
bearerAuth
Headers
Intercom-Versionstring(intercom_version_preview)

Preview Intercom API version. Used for closed beta endpoints or other features under managed availability.

Default:"Preview"
Value:"Preview"
Example:Preview
Bodyapplication/jsonrequired

Assign or clear office hours schedules for up to 50 teammates. All assignments are applied together or none are changed.

assignmentsarray of objects, [ 1 .. 50 ] itemsrequired

The teammates and their new schedule ids. Each teammate must belong to your workspace, be accessible to you, and appear at most once.

Example:
[ { "admin_id": "456", "office_hours_schedule_id": "123" }, { "admin_id": "789", "office_hours_schedule_id": null } ]
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
      }
    ]
  }'

Responses

Office hours assignments for the submitted teammates

Bodyapplication/json

Office hours assignments for the submitted teammates, in request order.

typestringrequired

The type of the object, always list.

Value:"list"
Example:"list"
dataarray of objects(Teammate Office Hours)required

The teammates' office hours assignments.

Example:
[ { "type": "admin_office_hours", "admin_id": "456", "office_hours_schedule_id": "123" } ]
Response
{ "type": "list", "data": [ { … }, { … } ] }