Skip to content

Commit b12eb71

Browse files
VarshSureshclaude
andauthored
Change ticket & conversation assignee ID fields to integer type (Preview) (#459)
* Change ticket assignee ID fields to integer type in Preview spec Convert admin_assignee_id and team_assignee_id from string to integer in the Preview API spec to align the Ticket API with the Conversation API, which already returns these fields as integers. Mirrors intercom/developer-docs#849 (backend: intercom/intercom#497865). Affected endpoints: POST /tickets, PUT /tickets/{id}, POST /tickets/search. Stable versions (2.7–2.15) are not affected. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Update conversation assignee ID nullability and ticket descriptions in Preview spec Conversation schemas: remove nullable from admin_assignee_id and team_assignee_id, return 0 instead of null when unassigned. Ticket schema: add return-0-when-unassigned language to descriptions. Aligns with developer-docs PR #849. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 952557b commit b12eb71

1 file changed

Lines changed: 24 additions & 28 deletions

File tree

descriptions/0/api.intercom.io.yaml

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10098,8 +10098,8 @@ paths:
1009810098
- type: contact
1009910099
id: 6762f2041bb69f9f2193bc0c
1010010100
external_id: '70'
10101-
admin_assignee_id: '0'
10102-
team_assignee_id: '0'
10101+
admin_assignee_id: 0
10102+
team_assignee_id: 0
1010310103
created_at: 1734537732
1010410104
updated_at: 1734537737
1010510105
ticket_parts:
@@ -16426,8 +16426,8 @@ paths:
1642616426
- type: contact
1642716427
id: 6762f2d81bb69f9f2193bc54
1642816428
external_id: '70'
16429-
admin_assignee_id: '0'
16430-
team_assignee_id: '0'
16429+
admin_assignee_id: 0
16430+
team_assignee_id: 0
1643116431
created_at: 1734537944
1643216432
updated_at: 1734537946
1643316433
ticket_parts:
@@ -16668,8 +16668,8 @@ paths:
1666816668
- type: contact
1666916669
id: 6762f2dd1bb69f9f2193bc55
1667016670
external_id: 8df1fa21-b41d-4621-9229-d6f7a3a590ce
16671-
admin_assignee_id: '991268013'
16672-
team_assignee_id: '0'
16671+
admin_assignee_id: 991268013
16672+
team_assignee_id: 0
1667316673
created_at: 1734537950
1667416674
updated_at: 1734537955
1667516675
ticket_parts:
@@ -16974,8 +16974,8 @@ paths:
1697416974
- type: contact
1697516975
id: 6762f2f61bb69f9f2193bc59
1697616976
external_id: b16afa36-2637-4880-adee-a46d145bc27f
16977-
admin_assignee_id: '0'
16978-
team_assignee_id: '0'
16977+
admin_assignee_id: 0
16978+
team_assignee_id: 0
1697916979
created_at: 1734537974
1698016980
updated_at: 1734537976
1698116981
ticket_parts:
@@ -17159,8 +17159,8 @@ paths:
1715917159
- type: contact
1716017160
id: 667d61c88a68186f43bafe93
1716117161
external_id: '71'
17162-
admin_assignee_id: '0'
17163-
team_assignee_id: '0'
17162+
admin_assignee_id: 0
17163+
team_assignee_id: 0
1716417164
created_at: 1719493065
1716517165
updated_at: 1719493068
1716617166
ticket_parts:
@@ -17322,8 +17322,8 @@ paths:
1732217322
| ticket_type_id | String |
1732317323
| contact_ids | String |
1732417324
| teammate_ids | String |
17325-
| admin_assignee_id | String |
17326-
| team_assignee_id | String |
17325+
| admin_assignee_id | Integer |
17326+
| team_assignee_id | Integer |
1732717327
| open | Boolean |
1732817328
| state | String |
1732917329
| snoozed_until | Date (UNIX timestamp) |
@@ -17439,8 +17439,8 @@ paths:
1743917439
- type: contact
1744017440
id: 6762f3061bb69f9f2193bc5b
1744117441
external_id: 9b913927-c084-4391-b1db-098341b5ffe3
17442-
admin_assignee_id: '0'
17443-
team_assignee_id: '0'
17442+
admin_assignee_id: 0
17443+
team_assignee_id: 0
1744417444
created_at: 1734537990
1744517445
updated_at: 1734537992
1744617446
ticket_parts:
@@ -21241,15 +21241,13 @@ components:
2124121241
example: priority
2124221242
admin_assignee_id:
2124321243
type: integer
21244-
nullable: true
2124521244
description: The id of the admin assigned to the conversation. If it's not
21246-
assigned to an admin it will return null.
21245+
assigned to an admin it will return 0.
2124721246
example: 0
2124821247
team_assignee_id:
2124921248
type: integer
21250-
nullable: true
2125121249
description: The id of the team assigned to the conversation. If it's not
21252-
assigned to a team it will return null.
21250+
assigned to a team it will return 0.
2125321251
example: 5017691
2125421252
company:
2125521253
"$ref": "#/components/schemas/company"
@@ -21362,15 +21360,13 @@ components:
2136221360
example: priority
2136321361
admin_assignee_id:
2136421362
type: integer
21365-
nullable: true
2136621363
description: The id of the admin assigned to the conversation. If it's not
21367-
assigned to an admin it will return null.
21364+
assigned to an admin it will return 0.
2136821365
example: 0
2136921366
team_assignee_id:
2137021367
type: integer
21371-
nullable: true
2137221368
description: The id of the team assigned to the conversation. If it's not
21373-
assigned to a team it will return null.
21369+
assigned to a team it will return 0.
2137421370
example: 5017691
2137521371
company:
2137621372
"$ref": "#/components/schemas/company"
@@ -27461,13 +27457,13 @@ components:
2746127457
contacts:
2746227458
"$ref": "#/components/schemas/ticket_contacts"
2746327459
admin_assignee_id:
27464-
type: string
27465-
description: The id representing the admin assigned to the ticket.
27466-
example: '1295'
27460+
type: integer
27461+
description: The id representing the admin assigned to the ticket. If it's not assigned to an admin it will return 0.
27462+
example: 1295
2746727463
team_assignee_id:
27468-
type: string
27469-
description: The id representing the team assigned to the ticket.
27470-
example: '1295'
27464+
type: integer
27465+
description: The id representing the team assigned to the ticket. If it's not assigned to a team it will return 0.
27466+
example: 1295
2747127467
created_at:
2747227468
type: integer
2747327469
format: date-time

0 commit comments

Comments
 (0)