You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fc07321
Browse filesBrowse the repository at this point in the historyBrowse files
description: The unique identifier of the team. Use `GET /teams` to list available team IDs.
29846
+
example: '42'
29847
+
schema:
29848
+
type: string
29849
+
tags:
29850
+
- Teams
29851
+
operationId: retrieveTeamOfficeHours
29852
+
description: |
29853
+
You can retrieve the team's linked office hours schedule, or the workspace default if the team has no schedule of its own.
29854
+
29855
+
The team must belong to your workspace. An unknown, malformed, or other-workspace team id returns a `404` error. If the team has no linked schedule and the workspace has no default, the endpoint returns a `404` error.
29856
+
29857
+
Requires either the `read_all` or `read_write_office_hours` OAuth scope and permission to manage workload management. Set `Intercom-Version: Preview`.
description: The unique identifier of the team. Use `GET /teams` to list available team IDs.
29896
+
example: '42'
29897
+
schema:
29898
+
type: string
29899
+
tags:
29900
+
- Teams
29901
+
operationId: updateTeamOfficeHours
29902
+
description: |
29903
+
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`.
29904
+
29905
+
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.
29906
+
29907
+
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.
29908
+
29909
+
Requires the `read_write_office_hours` OAuth scope and permission to manage workload management. Set `Intercom-Version: Preview`.
0 commit comments