Skip to content

Convert Contact.owner_id to string in unstable API#479

Merged
dan0505 merged 2 commits intomainfrom
dan0505/sync-pr-499855
Apr 27, 2026
Merged

Convert Contact.owner_id to string in unstable API#479
dan0505 merged 2 commits intomainfrom
dan0505/sync-pr-499855

Conversation

@dan0505
Copy link
Copy Markdown
Contributor

@dan0505 dan0505 commented Apr 24, 2026

Why?

Aligns the Contact.owner_id field type with Admin.id in the unstable API version. Both are now strings, improving type consistency across the API.

How?

Updated the Preview specification to reflect the unstable API's new string type for Contact.owner_id, while existing public versions (2.11–2.15) maintain integer type through versioning transformations.

Generated with Claude Code

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>
@dan0505 dan0505 self-assigned this Apr 24, 2026
@VarshSuresh
Copy link
Copy Markdown
Contributor

2 more places to have this change:

  1. update_contact_request
  2. create_contact_request

…ontact_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>
Copy link
Copy Markdown
Contributor

@VarshSuresh VarshSuresh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@dan0505 dan0505 merged commit b3c9834 into main Apr 27, 2026
3 checks passed
@dan0505 dan0505 deleted the dan0505/sync-pr-499855 branch April 27, 2026 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants