Skip to content
dimmiDocs

Conversations

Update an SLA policy

PATCH/api/v1/sla-policies/{policy}

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the settings:write ability

Path parameters

policystringrequired

Id of the SLA policy, starting with sla_, such as sla_01jx2m8k4t. Find it with GET /sla-policies.

Body

application/json
breach_prioritystring

The priority a ticket or conversation is raised to when it misses a target of this policy: low, medium, high or urgent, such as "urgent". It is only raised, never lowered. Send "none" for no priority change on a breach.

Available options:nonelowmediumhighurgent

breach_team_idstring

Id of the team, starting with team_, such as team_01jx2m8k4t. Find it with GET /teams.

Maximum length: 64

descriptionstring

The description of the sla policy, at most 500 characters.

Maximum length: 500

first_reply_secondsinteger

A length of time in seconds, such as 3600 for one hour.

Format: int32 · Minimum: 0 · Maximum: 31536000

follow_up_secondsinteger

A length of time in seconds, such as 3600 for one hour.

Format: int32 · Minimum: 0 · Maximum: 31536000

namestring

The name of the sla policy, at most 80 characters.

Maximum length: 80

next_reply_secondsinteger

A length of time in seconds, such as 3600 for one hour.

Format: int32 · Minimum: 0 · Maximum: 31536000

pause_on_waiting_customerboolean

true to pause the clocks while a ticket is in a state waiting on the customer, or a conversation is snoozed; false to keep them running. A new policy starts with true.

pause_on_waiting_teamboolean

true to pause the clocks while a ticket is in a state waiting on another team; false to keep them running. A new policy starts with false.

prioritiesstring[] | null

The ticket priorities this policy applies to, as a list of none, low, medium, high, urgent, such as ["high", "urgent"]. An empty list means any priority. A policy with no priorities and no ticket types is never applied on its own. When updating, sending it replaces the list.

Maximum items: 5

resolution_secondsinteger

A length of time in seconds, such as 3600 for one hour.

Format: int32 · Minimum: 0 · Maximum: 31536000

schedule_idstring

Id of the office hours schedule, starting with sch_, such as sch_01jx2m8k4t. Find it with GET /schedules.

Maximum length: 64

ticket_type_idsstring[] | null

Ids of ticket types, as a list, such as ["tktt_01jx2m8k4t"]. Find them with GET /ticket-types.

Maximum items: 50

warn_before_secondsinteger

A length of time in seconds, such as 3600 for one hour.

Format: int32 · Minimum: 0 · Maximum: 604800

Response 200

OK
dataobjectrequired
Show child attributes
archived_atstring | nullrequired

When the policy was archived; null while it is in use.

Format: date-time

breach_prioritystring | nullrequired

Priority a breach raises the work to: none, low, medium, high or urgent; null to leave the priority alone.

breach_team_idstring | nullrequired

Id of the team a breach moves the work to, such as team_...; null to leave it where it is.

created_atstringrequired

When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

descriptionstringrequired

What the policy is for; empty when none was written.

first_reply_secondsinteger | nullrequired

Seconds allowed for the first reply, counted in the schedule's open hours; null when the policy sets no such target.

Format: int32

follow_up_secondsinteger | nullrequired

Seconds allowed for a follow-up when the team spoke last; null when the policy sets no such target.

Format: int32

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

namestringrequired

The policy's name.

next_reply_secondsinteger | nullrequired

Seconds allowed for every reply after the first; null when the policy sets no such target.

Format: int32

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

pause_on_waiting_customerbooleanrequired

True when the policy's clocks pause while the work waits on the customer.

pause_on_waiting_teambooleanrequired

True when the policy's clocks pause while the work waits on another team.

positionintegerrequired

The policy's place in the order policies are tried; the first one matching a new ticket's type and priority applies.

Format: int32

prioritiesstring[] | nullrequired

Priorities of new tickets the policy applies to: none, low, medium, high or urgent. Empty when it names none.

resolution_secondsinteger | nullrequired

Seconds allowed to resolve the work; null when the policy sets no such target.

Format: int32

schedule_idstring | nullrequired

Id of the schedule whose open hours the targets count in, such as sch_...; null when the policy has none.

ticket_type_idsstring[] | nullrequired

Ids of the ticket types the policy applies to new tickets of, such as tktt_...; empty when it names none.

updated_atstringrequired

When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

warn_before_secondsintegerrequired

How many seconds before a target is due the team is warned.

Format: int32

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.