API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · escalation_rules

Escalation Rule Schema

ID du schéma
escalation_rule
Collection
escalation_rules
Autorisations
  • Lireescalation_rule_view
  • Créerescalation_rule_manage
  • Modifierescalation_rule_manage
  • Supprimerescalation_rule_manage

Champs

Escalation Rule Schema

escalation_rules4 autorisations

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.

namestringobligatoire

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

1–200 caractères
descriptionstringfacultatif
nullable
appliesTostringobligatoire

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

min. 1 caractères
deadlineFieldstringfacultatif

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

Motifnullable
sortOrderintegerfacultatif
≥ 0Par défaut : 0
guardsobject[]obligatoire

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

Par défaut : []
typestringobligatoire

Guard condition type

deadline_overduedeadline_inno_progress_afterstatus_isstatus_inpriority_ispriority_infield_equalsfield_missing
paramsobjectfacultatif

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

actionsobject[]obligatoire

Actions to execute when all guards match

Par défaut : []
typestringobligatoire
notifyreassignescalate_priorityset_fieldadd_comment
channelsstring[]facultatif
recipientsobject[]facultatif
refstringobligatoire

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

Motif
labelstringfacultatif
nullable
kindstringfacultatif
userteamplaceholder
paramsobjectfacultatif
escalationPolicyIduuidfacultatif

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

nullable
prioritystringfacultatif

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

LOWNORMALHIGHCRITICAL
nullable
isDefaultbooleanobligatoire

Whether this is a default rule for the appliesTo schema

isActivebooleanobligatoire

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/escalation_rules — Liste, paginée et filtrable
  • GET /api/v1/escalation_rules/<id> — Une entité
  • POST /api/v1/escalation_rules — Créer
  • PATCH /api/v1/escalation_rules/<id> — Mise à jour partielle
  • DELETE /api/v1/escalation_rules/<id> — Suppression logique
  • GET /api/v1/escalation_rules/<id>/timeline — Audit et activités

Recherche