FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Document attaching custom object instances to a contact (PUT /contacts/{id}) by MatthewPelyhes · Pull Request #594 · intercom/Intercom-OpenAPI · GitHub

Document attaching custom object instances to a contact (PUT /contacts/{id}) - #594

Open
MatthewPelyhes wants to merge 1 commit into
mainfrom
matthewpelyhes/document-contact-custom-object-attach
Open

Document attaching custom object instances to a contact (PUT /contacts/{id})#594
MatthewPelyhes wants to merge 1 commit into
mainfrom
matthewpelyhes/document-contact-custom-object-attach

Conversation

Copy link
Copy Markdown

Why?

The Preview "Update a contact" endpoint (PUT /contacts/{id}, grouped under Custom Object Instances in the dev docs) supports attaching custom object instances to a contact via a relationship custom attribute, but the spec had no request example showing the to-one case and did not describe the single-id-vs-array semantics. This closes that documentation gap so the auto-generated reference reflects the behaviour shipped in the monolith.

How?

On UpdateContact (Preview), replaces the single request example with two — attach a single custom object instance (to-one, a bare instance id) and attach multiple custom object instances (to-many, an array of ids) — mirroring the rswag examples added in the monolith, and documents the relationship-reference semantics on the update_contact_request custom_attributes schema (single id = to-one, array = to-many and replaces the whole set; the response surfaces the association as { "type": "<Type>.list", "instances": [...] }). Examples-only change — custom_attributes is already a free-form object — so no schema shape change is required.

Related:

  • intercom/intercom#542234 (monolith spec examples, merged)
  • intercom/intercom#542225 (issue)

API Versions Affected

  • Preview

Generated with Claude Code

…acts/{id}

Adds Preview request examples for attaching a single (to-one) and multiple
(to-many) custom object instances via custom_attributes on UpdateContact,
mirroring the rswag examples added in intercom/intercom#542234. Also documents
the relationship-reference semantics on the custom_attributes schema.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

1 participant


Back | FazBrowse Home | New Git URL