API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · escalation_rules

Escalation Rule Schema

Schema-ID
escalation_rule
Collection
escalation_rules
Permissions
  • Lezenescalation_rule_view
  • Aanmakenescalation_rule_manage
  • Wijzigenescalation_rule_manage
  • Verwijderenescalation_rule_manage

Velden

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.

namestringvereist

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

1–200 tekens
descriptionstringoptioneel
nullable
appliesTostringvereist

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

min. 1 tekens
deadlineFieldstringoptioneel

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

Patternnullable
sortOrderintegeroptioneel
≥ 0Default: 0
guardsobject[]vereist

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

Default: []
typestringvereist

Guard condition type

deadline_overduedeadline_inno_progress_afterstatus_isstatus_inpriority_ispriority_infield_equalsfield_missing
paramsobjectoptioneel

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

actionsobject[]vereist

Actions to execute when all guards match

Default: []
typestringvereist
notifyreassignescalate_priorityset_fieldadd_comment
channelsstring[]optioneel
recipientsobject[]optioneel
refstringvereist

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

Pattern
labelstringoptioneel
nullable
kindstringoptioneel
userteamplaceholder
paramsobjectoptioneel
escalationPolicyIduuidoptioneel

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

nullable
prioritystringoptioneel

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

LOWNORMALHIGHCRITICAL
nullable
isDefaultbooleanvereist

Whether this is a default rule for the appliesTo schema

isActivebooleanvereist

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/escalation_rules — Lijst, gepagineerd + filterbaar
  • GET /api/v1/escalation_rules/<id> — Enkele entity
  • POST /api/v1/escalation_rules — Aanmaken
  • PATCH /api/v1/escalation_rules/<id> — Gedeeltelijke update
  • DELETE /api/v1/escalation_rules/<id> — Soft-delete
  • GET /api/v1/escalation_rules/<id>/timeline — Audit + activiteiten

Zoeken