Skip to content

Preview API: document POST /contacts/merge duplicate validation#565

Merged
dan0505 merged 2 commits into
mainfrom
dq/contacts-merge-require-duplicate
Jun 25, 2026
Merged

Preview API: document POST /contacts/merge duplicate validation#565
dan0505 merged 2 commits into
mainfrom
dq/contacts-merge-require-duplicate

Conversation

@dan0505

@dan0505 dan0505 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Why?

The Preview API's POST /contacts/merge endpoint now rejects merges of contacts that are not duplicates (no matching email or phone) with a 400 invalid_merge error, and accepts a skip_duplicate_validation flag to override that check. SDKs and the Postman collection are generated from this spec, so it needs to expose the new request field and document the error response.

How?

Adds the skip_duplicate_validation boolean to the Preview merge_contacts_request schema, an override request example, and the 400 invalid_merge response on the MergeContact operation. Scoped to the Preview spec (descriptions/0); stable versions are unaffected.

Generated with Claude Code

Comment thread descriptions/0/api.intercom.io.yaml Outdated
Comment on lines +29819 to +29821
description: Set to `true` to merge two contacts that are not duplicates
(they share no matching email or phone). Has no effect on API versions
that do not enforce duplicate validation on merge.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
description: Set to `true` to merge two contacts that are not duplicates
(they share no matching email or phone). Has no effect on API versions
that do not enforce duplicate validation on merge.
description: Set to `true` to merge two contacts that are not duplicates
(they share no matching email or phone).

can follow up nit

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done — applied in 541af5f.

~ Automated via Claude

@dan0505 dan0505 enabled auto-merge (squash) June 25, 2026 13:55
dan0505 and others added 2 commits June 25, 2026 15:02
Add `skip_duplicate_validation` to the Preview `merge_contacts_request` schema,
an override request example, and the `400 invalid_merge` response on the
MergeContact operation. Affects the Preview (descriptions/0) spec only; stable
versions are unaffected.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Trim the trailing scope qualifier from the property description.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dan0505 dan0505 force-pushed the dq/contacts-merge-require-duplicate branch from 541af5f to 6a87506 Compare June 25, 2026 14:03
@dan0505 dan0505 merged commit 3f4f07d into main Jun 25, 2026
3 checks passed
@dan0505 dan0505 deleted the dq/contacts-merge-require-duplicate branch June 25, 2026 14:03
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