Skip to content

Add merge preview endpoint to Preview spec#581

Draft
marcmlc wants to merge 6 commits into
mainfrom
marc/merge-preview-spec
Draft

Add merge preview endpoint to Preview spec#581
marcmlc wants to merge 6 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 6 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>
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.

1 participant