Merge one or more duplicate tickets into this one
curl --request POST \ --url https://example.com/api/v1/tickets/example/merge \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "sourceTicketIds": [ "example" ] }'Folds each ticket in sourceTicketIds into {id} (the target): moves the source’s conversation and scheduled replies onto the target, closes the source and takes it out of the ticket lists, links it to the target, and leaves an internal note on both. Repeating the call for a source already merged into the same target folds in anything not yet moved. {id} and every source must fall inside the caller’s ticket scope or the whole request 404s before anything merges. The batch is never all-or-nothing: each source is attempted independently, so merged lists the ids that folded in and failed lists the rest with why. Requires the tickets.manage permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Request Body
Section titled “Request Body”object
Duplicate tickets to merge into {id}, 1 to 20.
Example generated
{ "sourceTicketIds": [ "example" ]}Responses
Section titled “Responses”Which source tickets merged and why the others did not.
object
Outcome of merging several tickets into one.
object
Source ticket ids that could not merge, with why.
object
Source ticket ids that merged successfully.
Example generated
{ "data": { "failed": [ { "id": "example", "reason": "example" } ], "merged": [ "example" ], "targetTicketId": "example" }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC