Escalation Rule Schema
Campos
Escalation Rule Schema
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.
name
Display name (e.g. "Rückruf-Eskalation Stufe 1")
description
appliesTo
Entity schema ID this rule applies to (e.g. "callback", "opportunity")
deadlineField
Optional name of a date/date-time field on the target entity used by deadline_overdue / deadline_in guards
sortOrder
guards
AND-combined guard predicates. All must match for actions to fire.
escalationPolicyId
Optional escalation policy that drives the multi-level alert flow. If null, only direct rule-level actions fire.
priority
Priority used when creating alerts. If null, the entity's own priority field is used (or NORMAL).
LOWNORMALHIGHCRITICALisDefault
Whether this is a default rule for the appliesTo schema
Ningún campo coincide con el filtro.
Endpoints estándar
Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:
GET /api/v1/escalation_rules— Lista, paginada y filtrableGET /api/v1/escalation_rules/<id>— Una entidadPOST /api/v1/escalation_rules— CrearPATCH /api/v1/escalation_rules/<id>— Actualización parcialDELETE /api/v1/escalation_rules/<id>— Eliminación lógicaGET /api/v1/escalation_rules/<id>/timeline— Auditoría y actividades