Skip to content

Update team office hours

Request

You can assign an office hours schedule to a team or set office_hours_schedule_id to null to remove the team's own schedule so it uses the workspace default. The field is required, even when its value is null.

The team and any non-null schedule must belong to your workspace. An unknown, malformed, or other-workspace team id returns a 404 error. An unknown, invalid, or other-workspace schedule id returns a 422 error. Sending the current value, including null for a team already using the workspace default, changes nothing.

Returns the same schedule object as GET /teams/{team_id}/office_hours. If removing the assignment leaves the team without a schedule and the workspace has no default, the assignment is removed but the response is a 404 error.

Requires the read_write_office_hours OAuth scope and permission to manage workload management. Set Intercom-Version: Preview.

Security
bearerAuth
Path
team_idstringrequired

The unique identifier of the team. Use GET /teams to list available team IDs.

Example:42
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/teams/42/office_hours \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'Intercom-Version: Preview' \
  -d '{
    "office_hours_schedule_id": "123"
  }'

Responses

Team office hours schedule

Bodyapplication/json

An office hours schedule defines the recurring weekly hours during which the workspace is open.

typestring

The type of the object - always office_hours_schedule.

Example:"office_hours_schedule"
idstring

The unique identifier for the office hours schedule.

Example:"123"
namestring

The name of the office hours schedule.

Example:"Standard Support Hours"
time_zone_namestring

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.

twenty_four_sevenboolean

Whether the schedule is open 24/7.

Example:false
created_atinteger

The time the schedule was created as a Unix timestamp.

Example:1717200000
updated_atinteger

The time the schedule was last updated as a Unix timestamp.

Example:1717200000
Response
{ "type": "office_hours_schedule", "id": "123", "name": "Standard Support Hours", "time_zone_name": "America/New_York", "time_intervals": [ { … } ], "twenty_four_seven": false, "created_at": 1717200000, "updated_at": 1717200000 }