Deskhero Developer Hub
Back to deskhero.com
Sla

Rules order

Stores the order in which SLA rules are evaluated (first match wins) from the rule ids passed in the intended order; ids that are unknown, deleted or belong to the default rule are skipped silently and the default rule always evaluates last, so pass every non-default rule id, because a rule left out of the list keeps its old position and ends up somewhere the request does not determine. Existing tickets are not re-evaluated: each keeps the rule and the deadlines already stamped on it until it is next updated.

PUT /api/{tenant:minlength(2)}/v{version:apiVersion}/sla/rules_order
Authorisation
Minimum role: ADMIN

Request arguments

Name Type Source
orderedIdsInt32[]Body
Request body example

Response

Status
200 (OK)
Type
DTO_sla_rule[]
Wrapper
DTO_response_wrap
Other statuses
400 (BadRequest), 403 (Forbidden)
Response body example
DTO_sla_rule
NameTypeReadOnlyDescription
groupsDTO_reference[]Groups the rule applies to. Empty = any group.
prioritiesDTO_reference[]Priorities the rule applies to. Empty = any priority.
business_scheduleDTO_referenceThe business-hours schedule the targets are counted in. Null = calendar hours (24/7).
created_byDTO_reference_userReadOnlyCreated by
last_updated_byDTO_reference_userReadOnlyLast updated by
idInt32ReadOnlyLeave empty when creating
nameStringName
lexo_rankStringReadOnlyLexo rank
enabledBooleanOff rules never match any ticket
is_defaultBooleanReadOnlyThe workspace catch-all rule: always evaluated last, cannot be deleted and takes no conditions. With both targets empty it means "no SLA for everything else".
first_reply_minutesInt32 (nullable)Minutes until the first response is due. Null = no first-response target. Counted inside the schedule's open hours when one is set.
resolution_minutesInt32 (nullable)Minutes until the ticket must be resolved. Null = no resolution target. This clock pauses while the ticket waits on the customer (see the pause statuses).
createdDateTimeReadOnlyCreated
last_updatedDateTimeReadOnlyLast updated
DTO_reference
NameTypeReadOnlyDescription
idInt32The id of the reference
labelObjectReadOnlyName/Label from referenced object.
DTO_reference_user
NameTypeReadOnlyDescription
profile_picStringReadOnlyProfile pic
emailStringReadOnlyEmail
idInt32Id
labelObjectReadOnlyLabel

Generated Aug 4, 2026 18:37