Skip to content

Commit be20e6b

Browse files
Align the Preview update-team-members contract with the API (#741)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent defce7e commit be20e6b

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

‎descriptions/0/api.intercom.io.yaml‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24453,7 +24453,7 @@ paths:
2445324453
- name: Intercom-Version
2445424454
in: header
2445524455
schema:
24456-
"$ref": "#/components/schemas/intercom_version"
24456+
"$ref": "#/components/schemas/intercom_version_preview"
2445724457
- name: id
2445824458
in: path
2445924459
required: true
@@ -24475,6 +24475,7 @@ paths:
2447524475
they must be able to manage teams, and any team or teammate their access is
2447624476
restricted from remains out of reach here.
2447724477
requestBody:
24478+
required: true
2447824479
content:
2447924480
application/json:
2448024481
examples:
@@ -30212,7 +30213,6 @@ components:
3021230213
admin_priority_level_request:
3021330214
title: Admin Priority Level Request
3021430215
type: object
30215-
nullable: true
3021630216
description: The priority levels to set, naming only the teammates whose level
3021730217
is being set
3021830218
properties:
@@ -46256,7 +46256,9 @@ components:
4625646256
query string is rejected rather than applied. A team read from the API can be sent
4625746257
back whole, since the other fields of the representation are accepted as long as
4625846258
they are unchanged. Trying to change one of them returns a 400 rather than being
46259-
ignored, as does any field a team does not have.
46259+
ignored, as does any field a team does not have. `admin_ids` cannot be empty, so
46260+
the endpoint will not empty a team, and a team with no members cannot be sent back
46261+
as it reads.
4626046262

4626146263
`admin_priority_level` sets which teammates take work first. It is optional, and
4626246264
names only the teammates whose level the request is setting: a teammate it leaves
@@ -46271,7 +46273,7 @@ components:
4627146273
level rather than being refused.
4627246274

4627346275
Only a team whose `distribution_method` is `load_balanced` can have secondary
46274-
members, so `secondary_admin_ids` returns a 400 on any other team.
46276+
members, so making a teammate secondary returns a 400 on any other team.
4627546277
`primary_admin_ids` is accepted on every team, but a team that does not balance
4627646278
assignment does not report `admin_priority_level` back and does not use the levels
4627746279
to decide who work goes to.
@@ -46282,6 +46284,8 @@ components:
4628246284
type: array
4628346285
description: The ids of every teammate who should be a member of the team.
4628446286
Must contain at least one id, and no more than 1000.
46287+
minItems: 1
46288+
maxItems: 1000
4628546289
items:
4628646290
type: integer
4628746291
example:

0 commit comments

Comments
 (0)