Skip to content

Commit fff8344

Browse files
dan0505claude
andauthored
Add admin_assignee_id and team_assignee_id to conversation part and ticket part schemas (#635)
* Add team_assigned_to to conversation part and ticket part schemas Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * Use unassigned rather than nobody_team for a removed team Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * Report part assignees as admin_assignee_id and team_assignee_id Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * Note that the part assignee id fields can be absent as well as null Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * Correct when the part assignee ids return 0 0 only appears when the part named which assignee it cleared; an unassignment that named neither returns null on both. Also documents that a bot is reported in admin_assignee_id. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * Add examples for the part assignee id fields Every other scalar property on the part schemas carries an example, and the endpoint response examples are what a reader checks the shape against, so the new fields need both. The assignment parts show the two shapes worth seeing: the conversation part is the Round Robin case with a teammate and a team set at once, the ticket part a plain teammate assignment. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent b80400d commit fff8344

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

descriptions/0/api.intercom.io.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14173,6 +14173,8 @@ paths:
1417314173
assigned_to:
1417414174
type: admin
1417514175
id: '991267715'
14176+
admin_assignee_id: 991267715
14177+
team_assignee_id: 5017691
1417614178
author:
1417714179
id: '991267715'
1417814180
type: admin
@@ -23718,6 +23720,8 @@ paths:
2371823720
assigned_to:
2371923721
type: admin
2372023722
id: '991268013'
23723+
admin_assignee_id: 991268013
23724+
team_assignee_id: null
2372123725
author:
2372223726
id: '991268011'
2372323727
type: admin
@@ -32321,6 +32325,26 @@ components:
3232132325
nullable: true
3232232326
description: The id of the admin that was assigned the conversation by this
3232332327
conversation_part (null if there has been no change in assignment.)
32328+
admin_assignee_id:
32329+
type: integer
32330+
nullable: true
32331+
description: The id of the teammate that this conversation_part assigned the
32332+
conversation to, or 0 if the part removed the teammate. Null or absent when
32333+
the part did not change the teammate, including an unassignment that did not
32334+
name which assignee it cleared. A bot is reported here, because assignment
32335+
treats anything that is not a team as a teammate.
32336+
example: 991267715
32337+
team_assignee_id:
32338+
type: integer
32339+
nullable: true
32340+
description: The id of the team that this conversation_part assigned the
32341+
conversation to, or 0 if the part removed the team. Null or absent when the
32342+
part did not change the team, including an unassignment that did not name
32343+
which assignee it cleared. A part can assign a team and a teammate at the
32344+
same time, for example when the team uses Round Robin distribution and the
32345+
teammate is resolved inline. In that case assigned_to reports only the
32346+
teammate, and these two fields report each assignee separately.
32347+
example: 5017691
3232432348
author:
3232532349
"$ref": "#/components/schemas/conversation_part_author"
3232632350
attachments:
@@ -40013,6 +40037,26 @@ components:
4001340037
nullable: true
4001440038
description: The id of the admin that was assigned the ticket by this ticket_part
4001540039
(null if there has been no change in assignment.)
40040+
admin_assignee_id:
40041+
type: integer
40042+
nullable: true
40043+
description: The id of the teammate that this ticket_part assigned the ticket
40044+
to, or 0 if the part removed the teammate. Null or absent when the part did
40045+
not change the teammate, including an unassignment that did not name which
40046+
assignee it cleared. A bot is reported here, because assignment treats
40047+
anything that is not a team as a teammate.
40048+
example: 991268013
40049+
team_assignee_id:
40050+
type: integer
40051+
nullable: true
40052+
description: The id of the team that this ticket_part assigned the ticket to,
40053+
or 0 if the part removed the team. Null or absent when the part did not
40054+
change the team, including an unassignment that did not name which assignee
40055+
it cleared. A part can assign a team and a teammate at the same time, for
40056+
example when the team uses Round Robin distribution and the teammate is
40057+
resolved inline. In that case assigned_to reports only the teammate, and
40058+
these two fields report each assignee separately.
40059+
example: 5017691
4001640060
author:
4001740061
"$ref": "#/components/schemas/ticket_part_author"
4001840062
attachments:

0 commit comments

Comments
 (0)