Skip to content

Update general ticket settings

PATCH
/tickets/settings/general
Code sample: Shell / cURL
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.

Media typeapplication/json
object
autoClose
object
afterHours
required

Hours a pending ticket may go without a message or change before it closes. Null turns auto-close off.

Any of:
integer
>= 1 <= 8760
fromStatusId
required

The open status that counts as pending. Required when afterHours is set.

string | null
toStatusId
required

The closed status pending tickets move to. Required when afterHours is set.

string | null
clientReplyStatusId
string | null
ratingsEnabled
boolean
replyStatusId
string | null
waitingReminders
object
closeDays
required

Business days before the ticket closes. Greater than the second reminder.

integer
>= 1 <= 60
closeStatusId
required

The closed status the ticket moves to. Required when enabled is true.

string | null
enabled
required

Whether clients are reminded while a ticket waits on them, and the ticket closes when they stay silent. Off by default.

boolean
firstReminderDays
required

Business days a ticket waits on the client before the first reminder.

integer
>= 1 <= 60
message
required

The reminder text as HTML. Null falls back to a built-in default. It may use {{ticket.subject}}, {{ticket.close_date}} and {{workspace.name}}.

string | null
secondReminderDays
required

Business days before the second reminder. Greater than the first.

integer
>= 1 <= 60

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
}
}

The updated general ticket settings.

Media typeapplication/json
object
data
required

A workspace’s general ticket settings.

object
autoClose
required

Close pending tickets after a quiet period.

object
afterHours
required

Hours a pending ticket may go without a message or change before it closes. Null turns auto-close off.

Any of:
integer
>= 1 <= 8760
fromStatusId
required

The open status that counts as pending. Required when afterHours is set.

string | null
toStatusId
required

The closed status pending tickets move to. Required when afterHours is set.

string | null
clientReplyStatusId
required

When a client replies: the status a client’s message moves its ticket to. Null leaves the ticket where it is.

string | null
ratingsEnabled
required

Whether clients may rate a closed ticket from the portal. Off by default.

boolean
replyStatusId
required

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.

string | null
waitingReminders

Remind clients who have not replied, then close the ticket. Absent on a server older than this setting.

object
closeDays
required

Business days before the ticket closes. Greater than the second reminder.

integer
>= 1 <= 60
closeStatusId
required

The closed status the ticket moves to. Required when enabled is true.

string | null
enabled
required

Whether clients are reminded while a ticket waits on them, and the ticket closes when they stay silent. Off by default.

boolean
firstReminderDays
required

Business days a ticket waits on the client before the first reminder.

integer
>= 1 <= 60
message
required

The reminder text as HTML. Null falls back to a built-in default. It may use {{ticket.subject}}, {{ticket.close_date}} and {{workspace.name}}.

string | null
secondReminderDays
required

Business days before the second reminder. Greater than the first.

integer
>= 1 <= 60

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.

Media typeapplication/json

Validation error with safe field paths and expected values; submitted values are never returned.

object
error
required
object
code
required

Stable machine-readable error code.

string
issues
Array<object>
object
expected
required
string
message
required
string
path
required
Array<string | number>
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.