Skip to content

Update teammate office hours

Request

You can assign an office hours schedule to a teammate or set office_hours_schedule_id to null to remove their own schedule so they inherit office hours. The field is required, even when its value is null.

The teammate and any non-null schedule must belong to your workspace, and the teammate must be accessible to you. Sending the current value, including null for a teammate who already inherits, is a no-op that changes nothing. Returns the same assignment object as GET /admins/{id}/office_hours.

Requires the read_write_office_hours OAuth scope and permission to access reporting. Set Intercom-Version: Preview.

Security
bearerAuth
Path
idstringrequired

The unique identifier of the teammate.

Example:456
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 a schedule to a team or teammate, or remove the assignment to use inherited office hours.

office_hours_schedule_idstring or nullrequired

The id of an office hours schedule in your workspace. Set to null to remove the team's or teammate's own schedule. Required even when null.

Example:"123"
curl -i -X PUT \
  https://api.intercom.io/admins/456/office_hours \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'Intercom-Version: Preview' \
  -d '{
    "office_hours_schedule_id": "123"
  }'

Responses

Teammate office hours assignment

Bodyapplication/json

A teammate's own office hours schedule assignment. A null schedule id means the teammate inherits office hours instead of having their own schedule.

typestringrequired

The type of the object, always admin_office_hours.

Value:"admin_office_hours"
Example:"admin_office_hours"
admin_idstringrequired

The unique identifier of the teammate.

Example:"456"
office_hours_schedule_idstring or nullrequired

The teammate's own office hours schedule id, or null if they inherit office hours. This is not the id of the inherited schedule.

Example:"123"
Response
{ "type": "admin_office_hours", "admin_id": "456", "office_hours_schedule_id": "123" }