Skip to content

Commit 3f4f07d

Browse files
dan0505claude
andauthored
Preview API: document POST /contacts/merge duplicate validation (#565)
* 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> * Simplify skip_duplicate_validation description Trim the trailing scope qualifier from the property description. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent bbe8bfa commit 3f4f07d

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

descriptions/0/api.intercom.io.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8189,6 +8189,21 @@ paths:
81898189
nullable: true
81908190
description: If the user has enabled push messaging.
81918191
example: true
8192+
'400':
8193+
description: Bad Request
8194+
content:
8195+
application/json:
8196+
examples:
8197+
Not a duplicate:
8198+
value:
8199+
type: error.list
8200+
errors:
8201+
- code: invalid_merge
8202+
message: Contacts can only be merged when they are duplicates
8203+
(matching email or phone). Pass skip_duplicate_validation=true
8204+
to override this check.
8205+
schema:
8206+
"$ref": "#/components/schemas/error"
81928207
'401':
81938208
description: Unauthorized
81948209
content:
@@ -8214,6 +8229,12 @@ paths:
82148229
value:
82158230
from: 6762f0d51bb69f9f2193bb7f
82168231
into: 6762f0d51bb69f9f2193bb80
8232+
skip duplicate validation:
8233+
summary: skip duplicate validation
8234+
value:
8235+
from: 6762f0d51bb69f9f2193bb7f
8236+
into: 6762f0d51bb69f9f2193bb80
8237+
skip_duplicate_validation: true
82178238
"/contacts/search":
82188239
post:
82198240
summary: Search contacts
@@ -34253,6 +34274,11 @@ components:
3425334274
description: The unique identifier for the contact to merge into. Must be
3425434275
a user.
3425534276
example: 5ba682d23d7cf92bef87bfd4
34277+
skip_duplicate_validation:
34278+
type: boolean
34279+
description: Set to `true` to merge two contacts that are not duplicates
34280+
(they share no matching email or phone).
34281+
example: true
3425634282
merge_conversations_request:
3425734283
title: Merge Conversations Request
3425834284
type: object

0 commit comments

Comments
 (0)