| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…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>
| Back | FazBrowse Home | New Git URL |
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:
API Versions Affected
Generated with Claude Code