Skip to content

Commit b3c9834

Browse files
dan0505claude
andauthored
Convert Contact.owner_id to string in unstable API (#479)
* Convert Contact.owner_id to string in unstable API version Aligns Contact.owner_id field with Admin.id type (both now strings in Unstable version). Existing public versions (2.11-2.15) maintain integer type via versioning transformations. Updates Preview spec (descriptions/0/api.intercom.io.yaml): - Change Contact schema owner_id from type: integer to type: string - Update example from 123 to '123' This matches PR intercom/intercom#499855. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> * Add owner_id string conversion to create_contact_request and update_contact_request Updates the request body schemas to reflect the new string type for owner_id field in the Unstable API version, matching the Contact response schema change. - create_contact_request: owner_id type integer → string, example 123 → '123' - update_contact_request: owner_id type integer → string, example 123 → '123' Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 693d692 commit b3c9834

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

descriptions/0/api.intercom.io.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20271,11 +20271,11 @@ components:
2027120271
description: The contacts name.
2027220272
example: John Doe
2027320273
owner_id:
20274-
type: integer
20274+
type: string
2027520275
nullable: true
2027620276
description: The id of an admin that has been assigned account ownership
2027720277
of the contact.
20278-
example: 123
20278+
example: '123'
2027920279
has_hard_bounced:
2028020280
type: boolean
2028120281
description: Whether the contact has had an email sent to them hard bounce.
@@ -22227,11 +22227,11 @@ components:
2222722227
Messenger was installed or when specified manually)
2222822228
example: 1571672154
2222922229
owner_id:
22230-
type: integer
22230+
type: string
2223122231
nullable: true
2223222232
description: The id of an admin that has been assigned account ownership
2223322233
of the contact
22234-
example: 123
22234+
example: '123'
2223522235
unsubscribed_from_emails:
2223622236
type: boolean
2223722237
nullable: true
@@ -28357,11 +28357,11 @@ components:
2835728357
Messenger was installed or when specified manually)
2835828358
example: 1571672154
2835928359
owner_id:
28360-
type: integer
28360+
type: string
2836128361
nullable: true
2836228362
description: The id of an admin that has been assigned account ownership
2836328363
of the contact
28364-
example: 123
28364+
example: '123'
2836528365
unsubscribed_from_emails:
2836628366
type: boolean
2836728367
nullable: true

0 commit comments

Comments
 (0)