Skip to content

Add merge preview endpoint to Preview spec#581

Merged
marcmlc merged 7 commits into
mainfrom
marc/merge-preview-spec
Jul 13, 2026
Merged

Add merge preview endpoint to Preview spec#581
marcmlc merged 7 commits into
mainfrom
marc/merge-preview-spec

Conversation

@marcmlc

@marcmlc marcmlc commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Why?

The monolith is adding a read-only dry-run endpoint (POST /contacts/merge/preview) that lets API consumers check whether a contact merge would be allowed, and preview its effects, before committing to the merge. This PR documents that endpoint in the Preview OpenAPI spec so the auto-generated reference page reflects it.

How?

Adds the PreviewMergeContact operation and its merge_preview_* component schemas (request, response oneOf of allowed/blocked, reasons, and change summary) to descriptions/0/api.intercom.io.yaml, alongside two response examples and a reason-code reference table in the operation description.

This PR is a draft: it should not be marked ready until the monolith PR changing the merge-block reasons to a {code, message} shape has merged, since this spec's schemas and examples describe that shape.

🤖 Generated with Claude Code

marcmlc and others added 7 commits July 8, 2026 16:31
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…orted)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…erge_role_pair)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… preview

Mirror intercom/intercom#536857: the merge preview response now reports
owned_conversations (primary-user ownership transfer) and
participated_conversations (participation move) instead of a single
conversations count.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Follow intercom/intercom#536857: the merge preview reports one conversations
reassignment count — the distinct number of conversations the merge reassigns,
covering both conversations the contact owns and those it participates in
(de-duped) — rather than separate owned/participated counts.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@marcmlc marcmlc marked this pull request as ready for review July 13, 2026 10:10
@marcmlc marcmlc merged commit 194be75 into main Jul 13, 2026
3 checks passed
@marcmlc marcmlc deleted the marc/merge-preview-spec branch July 13, 2026 10:57
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