Edit a ticket's own fields
curl --request PATCH \ --url https://example.com/api/v1/tickets/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "clientId": "example", "closedAt": "2026-04-15T12:00:00Z", "createdAt": "2026-04-15T12:00:00Z", "priority": "NONE", "subject": "example" }'Edits a ticket’s subject, priority, linked client, date added, or date closed — never its conversation or status (use PATCH /tickets/{id}/status for status). At least one field is required. clientId must be a client the caller can use, or null to unlink. createdAt cannot be in the future. closedAt can only be set on a ticket that is already closed, and cannot be before the (new or current) date added. 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
Client this ticket belongs to, or null to unlink it.
Only settable on a ticket that is already closed, and never before its date added. Reopen a ticket by changing its status.
Cannot be in the future.
Responses
Section titled “Responses”The ticket after the edit.
object
A ticket after editing its own fields.
Example
{ "data": { "priority": "NONE" }}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" }}Invalid input.
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