API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · escalation_rules

Escalation Rule Schema

Schema ID
escalation_rule
Collection
escalation_rules
Permissions
  • Readescalation_rule_view
  • Createescalation_rule_manage
  • Editescalation_rule_manage
  • Deleteescalation_rule_manage

Fields

Escalation Rule Schema

escalation_rules4 permissions

Schema-agnostic escalation rule. Targets any entity (callback, opportunity, complaint, …) with a deadline field, evaluates guards on a cron, and queues alerts/actions when guards match.

namestringrequired

Display name (e.g. "Rückruf-Eskalation Stufe 1")

1–200 characters
descriptionstringoptional
nullable
appliesTostringrequired

Entity schema ID this rule applies to (e.g. "callback", "opportunity")

min 1 characters
deadlineFieldstringoptional

Optional name of a date/date-time field on the target entity used by deadline_overdue / deadline_in guards

Patternnullable
sortOrderintegeroptional
≥ 0Default: 0
guardsobject[]required

AND-combined guard predicates. All must match for actions to fire.

Default: []
typestringrequired

Guard condition type

deadline_overduedeadline_inno_progress_afterstatus_isstatus_inpriority_ispriority_infield_equalsfield_missing
paramsobjectoptional

Guard-specific parameters, e.g. { beforeMinutes: 30 }, { status: "OPEN" }, { closedStatuses: ["COMPLETED","CANCELLED"] }

actionsobject[]required

Actions to execute when all guards match

Default: []
typestringrequired
notifyreassignescalate_priorityset_fieldadd_comment
channelsstring[]optional
recipientsobject[]optional
refstringrequired

UUID of a user/team or a placeholder like {{entity.assignedToId}}, {{entity.createdBy}}

Pattern
labelstringoptional
nullable
kindstringoptional
userteamplaceholder
paramsobjectoptional
escalationPolicyIduuidoptional

Optional escalation policy that drives the multi-level alert flow. If null, only direct rule-level actions fire.

nullable
prioritystringoptional

Priority used when creating alerts. If null, the entity's own priority field is used (or NORMAL).

LOWNORMALHIGHCRITICAL
nullable
isDefaultbooleanrequired

Whether this is a default rule for the appliesTo schema

isActivebooleanrequired

Standard endpoints

This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:

  • GET /api/v1/escalation_rules — List, paginated + filterable
  • GET /api/v1/escalation_rules/<id> — Single entity
  • POST /api/v1/escalation_rules — Create
  • PATCH /api/v1/escalation_rules/<id> — Partial update
  • DELETE /api/v1/escalation_rules/<id> — Soft delete
  • GET /api/v1/escalation_rules/<id>/timeline — Audit + activities

Search