Deskhero Developer Hub
Back to deskhero.com
Sla

Rules

Returns the SLA rules in evaluation order (first match wins, default rule last).

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

Request arguments

Name Type Source
inputDTO_sla_ruleBody
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