Update general ticket settings
curl --request PATCH \ --url https://example.com/api/v1/tickets/settings/general \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "autoClose": { "afterHours": 1, "fromStatusId": "example", "toStatusId": "example" }, "clientReplyStatusId": "example", "ratingsEnabled": true, "replyStatusId": "example", "waitingReminders": { "closeDays": 1, "closeStatusId": "example", "enabled": true, "firstReminderDays": 1, "message": "example", "secondReminderDays": 1 } }'Updates any of ratings, the default action on reply, auto-close and the waiting-on-client reminders; omitted fields stay as they are. Auto-close needs an open pending status and a closed status whenever afterHours is set, and every status must belong to the workspace. Reminders need whole business days in rising order (first reminder, second reminder, close) and a closed status when enabled is true. Requires the settings.manage permission.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”object
object
The open status that counts as pending. Required when afterHours is set.
The closed status pending tickets move to. Required when afterHours is set.
object
Business days before the ticket closes. Greater than the second reminder.
The closed status the ticket moves to. Required when enabled is true.
Whether clients are reminded while a ticket waits on them, and the ticket closes when they stay silent. Off by default.
Business days a ticket waits on the client before the first reminder.
The reminder text as HTML. Null falls back to a built-in default. It may use {{ticket.subject}}, {{ticket.close_date}} and {{workspace.name}}.
Business days before the second reminder. Greater than the first.
Example generated
{ "autoClose": { "afterHours": 1, "fromStatusId": "example", "toStatusId": "example" }, "clientReplyStatusId": "example", "ratingsEnabled": true, "replyStatusId": "example", "waitingReminders": { "closeDays": 1, "closeStatusId": "example", "enabled": true, "firstReminderDays": 1, "message": "example", "secondReminderDays": 1 }}Responses
Section titled “Responses”The updated general ticket settings.
object
A workspace’s general ticket settings.
object
Close pending tickets after a quiet period.
object
The open status that counts as pending. Required when afterHours is set.
The closed status pending tickets move to. Required when afterHours is set.
When a client replies: the status a client’s message moves its ticket to. Null leaves the ticket where it is.
Whether clients may rate a closed ticket from the portal. Off by default.
Default action on reply: the status the team’s reply to the client moves the ticket to unless the agent picks another. Null does nothing.
Remind clients who have not replied, then close the ticket. Absent on a server older than this setting.
object
Business days before the ticket closes. Greater than the second reminder.
The closed status the ticket moves to. Required when enabled is true.
Whether clients are reminded while a ticket waits on them, and the ticket closes when they stay silent. Off by default.
Business days a ticket waits on the client before the first reminder.
The reminder text as HTML. Null falls back to a built-in default. It may use {{ticket.subject}}, {{ticket.close_date}} and {{workspace.name}}.
Business days before the second reminder. Greater than the first.
Example generated
{ "data": { "autoClose": { "afterHours": 1, "fromStatusId": "example", "toStatusId": "example" }, "clientReplyStatusId": "example", "ratingsEnabled": true, "replyStatusId": "example", "waitingReminders": { "closeDays": 1, "closeStatusId": "example", "enabled": true, "firstReminderDays": 1, "message": "example", "secondReminderDays": 1 } }}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" }}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