Skip to content

Commit 954d3be

Browse files
dan0505claude
andcommitted
Preview API: document POST /contacts/merge duplicate validation
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>
1 parent 1210cd6 commit 954d3be

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

descriptions/0/api.intercom.io.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6425,6 +6425,21 @@ paths:
64256425
nullable: true
64266426
description: If the user has enabled push messaging.
64276427
example: true
6428+
'400':
6429+
description: Bad Request
6430+
content:
6431+
application/json:
6432+
examples:
6433+
Not a duplicate:
6434+
value:
6435+
type: error.list
6436+
errors:
6437+
- code: invalid_merge
6438+
message: Contacts can only be merged when they are duplicates
6439+
(matching email or phone). Pass skip_duplicate_validation=true
6440+
to override this check.
6441+
schema:
6442+
"$ref": "#/components/schemas/error"
64286443
'401':
64296444
description: Unauthorized
64306445
content:
@@ -6450,6 +6465,12 @@ paths:
64506465
value:
64516466
from: 6762f0d51bb69f9f2193bb7f
64526467
into: 6762f0d51bb69f9f2193bb80
6468+
skip duplicate validation:
6469+
summary: skip duplicate validation
6470+
value:
6471+
from: 6762f0d51bb69f9f2193bb7f
6472+
into: 6762f0d51bb69f9f2193bb80
6473+
skip_duplicate_validation: true
64536474
"/contacts/search":
64546475
post:
64556476
summary: Search contacts
@@ -29793,6 +29814,12 @@ components:
2979329814
description: The unique identifier for the contact to merge into. Must be
2979429815
a user.
2979529816
example: 5ba682d23d7cf92bef87bfd4
29817+
skip_duplicate_validation:
29818+
type: boolean
29819+
description: Set to `true` to merge two contacts that are not duplicates
29820+
(they share no matching email or phone). Has no effect on API versions
29821+
that do not enforce duplicate validation on merge.
29822+
example: true
2979629823
merge_conversations_request:
2979729824
title: Merge Conversations Request
2979829825
type: object

0 commit comments

Comments
 (0)