Skip to content

Add POST /conversations/{id}/merge endpoint#503

Merged
salmanbshah merged 1 commit into
mainfrom
salmanshah/merge-conversations-api-spec
May 19, 2026
Merged

Add POST /conversations/{id}/merge endpoint#503
salmanbshah merged 1 commit into
mainfrom
salmanshah/merge-conversations-api-spec

Conversation

@salmanbshah
Copy link
Copy Markdown
Contributor

Why?

A new endpoint for merging conversations has been added to the REST API. This PR adds the corresponding OpenAPI spec so SDK consumers and developers can discover and use it.

How?

Adds the POST /conversations/{id}/merge path and merge_conversations_request schema to the Preview spec, plus a Fern type name override in the preview overrides file. The endpoint accepts merge_into_conversation_id (the target conversation) in the request body and returns the primary conversation on success. Error responses cover 400 (invalid parameter), 401 (unauthorized), 403 (forbidden), and 422 (merge failed — primary not found, already merged, self-merge).

Generated with Claude Code

@salmanbshah salmanbshah self-assigned this May 19, 2026
@salmanbshah salmanbshah requested review from a team May 19, 2026 16:07
@salmanbshah salmanbshah enabled auto-merge (squash) May 19, 2026 16:08
@salmanbshah salmanbshah merged commit 995184f into main May 19, 2026
2 checks passed
@salmanbshah salmanbshah deleted the salmanshah/merge-conversations-api-spec branch May 19, 2026 16:13
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