API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · checklist_templates

Checklist Template Schema

ID del esquema
checklist_template
Colección
checklist_templates
Permisos
  • Leerchecklist_template_view
  • Crearchecklist_template_create
  • Modificarchecklist_template_edit
  • Eliminarchecklist_template_delete

Campos

Checklist Template Schema

checklist_templates4 permisos

Schema for validating checklist template entities

titlestringobligatorio

Template title

1–200 caracteres
descriptionstringopcional

Template description

máx. 2000 caracteresadmite null
categorystringobligatorio

Template category (validated server-side against CHECKLIST_CATEGORIES)

1–64 caracteres
targetEntityTypestringobligatorio

Target entity type (validated server-side against the tenant allowlist)

1–64 caracteres
autoCreatebooleanopcional

Whether to automatically create checklists from this template

Valor por defecto: false
blocksCompletionbooleanopcional

Whether checklists spawned from this template block the linked entity's completion until COMPLETED

Valor por defecto: falseadmite null
blocksExitFromStatusstringopcional

Status key whose exit spawned checklists block (e.g. IN_REVIEW_TECH). Absent = legacy completion gate.

admite null
itemsobject[]obligatorio
Valor por defecto: []
itemIduuidopcional

Stable identifier within the template. Used to anchor parentItemId refs.

admite null
titlestringobligatorio

Item title

1–200 caracteres
descriptionstringopcional

Item description

máx. 1000 caracteresadmite null
sortOrderintegerobligatorio

Sort order within the template

≥ 0
defaultAssigneeRolestringopcional

Default assignee role slug

máx. 100 caracteresadmite null
parentItemIduuidopcional

References another template item by itemId to mark this as a sub-item.

admite null
autoCompleteWhenSubsDonebooleanopcional

Inherited by spawned checklist items; auto-complete parent when subs done.

Valor por defecto: trueadmite null
requireAllSubsDonebooleanopcional

Inherited by spawned checklist items; require subs done before parent DONE.

Valor por defecto: falseadmite null
visibleIfobjectopcional

ADR 0511: the step is only part of the run when this condition holds. Absent/null = always visible. May only reference answers from EARLIER steps.

Valor por defecto: nulladmite null
terminatesIfobjectopcional

ADR 0511: when this holds on a visible step, the checklist completes early with `terminationReason` and remaining open steps are SKIPPED.

Valor por defecto: nulladmite null
answerKeystringopcional

Stable key under which this step's answer is recorded in `answers`. Conditions reference this, never the item index.

máx. 40 caracteresPatrónValor por defecto: nulladmite null
inputobjectopcional

Typed answer step (ADR 0511). Renders an input instead of a checkbox; the value lands in `answers[answerKey]`.

Valor por defecto: nulladmite null
typestringobligatorio
textnumberdatebooleanselectentity_ref
entityTypestringopcional
máx. 64 caracteresadmite null
optionsstring[]opcional
Valor por defecto: []admite null
requiredbooleanopcional
Valor por defecto: false
unitstringopcional
máx. 20 caracteresadmite null
minnumberopcional
admite null
maxnumberopcional
admite null
documentobjectopcional

Dokumente, die dieser Schritt erzeugt oder anfordert

admite null
documentsobject[]obligatorio
1–20 elementos
keystringobligatorio
1–100 caracteres
templateIdstringobligatorio
máx. 64 caracteres
titlestringopcional
máx. 255 caracteresadmite null
roleBindingsobjectopcional
admite null
startstringopcional
MANUALON_STEP_OPEN
Valor por defecto: "MANUAL"
reviewBeforeSendbooleanopcional
Valor por defecto: false
completeOnstringobligatorio
GENERATEDFILLEDSIGNED
bundlebooleanopcional
Valor por defecto: true
dueOffsetobjectopcional

ADR 0831: due date of this step relative to a date of the linked entity (start/end/created) or to the spawn instant (now). Resolved into items[].dueDate when the checklist is spawned.

Valor por defecto: nulladmite null
valueintegerobligatorio
0 – 10000
unitstringobligatorio
mhdwmo
directionstringobligatorio
beforeafter
anchorstringobligatorio
startendcreatednow
anchorFieldstringopcional

Explicit dot path on the target entity that replaces the semantic anchor probing.

máx. 100 caracteresPatrónValor por defecto: nulladmite null
linkedTaskobjectopcional
admite null
enabledbooleanobligatorio
assigneeRuleobjectopcional
admite null
titleTemplatestringopcional
máx. 300 caracteresadmite null
dueDaysintegeropcional
0 – 3650admite null
dueOffsetobjectopcional

ADR 0831: due date of the linked task relative to a date of the linked entity. Takes precedence over `dueDays`.

Valor por defecto: nulladmite null
valueintegerobligatorio
0 – 10000
unitstringobligatorio
mhdwmo
directionstringobligatorio
beforeafter
anchorstringobligatorio
startendcreatednow
anchorFieldstringopcional

Explicit dot path on the target entity that replaces the semantic anchor probing.

máx. 100 caracteresPatrónValor por defecto: nulladmite null
prioritystringopcional
LOWNORMALHIGHCRITICAL
admite null
approvalobjectopcional
admite null
requiredbooleanobligatorio
approverTypestringopcional
roleuserorg_unit_manager
admite null
approverValuestringopcional
máx. 200 caracteresadmite null
guardsobject[]opcional

Guards inherited by checklist items created from this template

Valor por defecto: []admite null
typestringobligatorio
1–64 caracteres
paramsobjectopcional
admite null
labelstringopcional
admite null
actionsobject[]opcional

Actions inherited by checklist items created from this template

Valor por defecto: []admite null
typestringobligatorio
1–64 caracteres
paramsobjectopcional
admite null
labelstringopcional
admite null
phasestringopcional
onEnteronExit
admite null
watchersobject[]opcional

Reactive watchers inherited by checklist items created from this template

Valor por defecto: []admite null
typestringobligatorio
1–64 caracteres
paramsobjectopcional
admite null
labelstringopcional
admite null
onTruestringopcional
completeskip
admite null
onFalsestringopcional
noopuncheck
admite null
debounceSecondsnumberopcional
≥ 0admite null
notifyOnFirebooleanopcional
admite null
choiceobjectopcional

Scenario selector; each option carries its own completion actions

admite null
modestringopcional

single = exactly one option (radio); multi = several (checkboxes)

singlemulti
Valor por defecto: "single"
requiredbooleanopcional

When true, at least one option must be selected before check-off

Valor por defecto: falseadmite null
optionsobject[]obligatorio
Valor por defecto: []
optionIduuidobligatorio
labelstringobligatorio
1–200 caracteres
sortOrderintegeropcional
≥ 0admite null
injectobjectopcional

ADR 0511: picking this option inserts the referenced template's steps into THIS checklist (one record, one progress, one completion gate) instead of spawning a separate one.

Valor por defecto: nulladmite null
checklistTemplateIduuidobligatorio
groupedbooleanopcional

Render the inserted steps as a collapsible block under a parent step.

Valor por defecto: true
answerKeyPrefixstringopcional

Namespace for the inserted template's answer keys, so inserting the same template twice cannot overwrite answers.

máx. 40 caracteresPatrónadmite null
actionsobject[]opcional
Valor por defecto: []admite null
typestringobligatorio
1–64 caracteres
paramsobjectopcional
admite null
labelstringopcional
admite null
phasestringopcional
onEnteronExit
admite null
tagsstring[]opcional

Template tags

Valor por defecto: []admite null
deadlineOffsetobjectopcional

Relative deadline offset. Without direction/anchor: spawn instant + offset. With them: resolved against the linked entity (ADR 0831).

admite null
valuenumberobligatorio
≥ 0
unitstringobligatorio
mhdwmo
directionstringopcional
beforeafternull
admite null
anchorstringopcional
startendcreatednownull
admite null
anchorFieldstringopcional
máx. 100 caracteresPatrónadmite null
responsibleUserIduuidopcional

Responsible person (mutually exclusive with responsiblePositionId)

admite null
responsiblePositionIduuidopcional

Responsible position; resolved to its primary holder at spawn time

admite null
responsibleSourcestringopcional

Dynamic responsible resolution at spawn time (e.g. the linked entity's team lead)

org_unit_managernull
admite null
autoCreateTriggerobjectopcional

Auto-create the checklist when the target entity matches this trigger

admite null
eventsstring[]obligatorio
mín. 1 elementos
conditionsobject[]opcional
Valor por defecto: []
fieldstringobligatorio
1–128 caracteres
operatorstringobligatorio
eqneinchangedchanged_to
valueanyopcional
spawnOnobjectopcional
admite null
sourceEntityTypestringobligatorio
1–64 caracteres
sourceFieldstringobligatorio
1–128 caracteres
deadlineEscalationobjectopcional

Who to notify when the spawned checklist misses its deadline

admite null
notifyRecipientstringobligatorio
1–64 caracteres
channelsstring[]opcional
Valor por defecto: []

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/checklist_templates — Lista, paginada y filtrable
  • GET /api/v1/checklist_templates/<id> — Una entidad
  • POST /api/v1/checklist_templates — Crear
  • PATCH /api/v1/checklist_templates/<id> — Actualización parcial
  • DELETE /api/v1/checklist_templates/<id> — Eliminación lógica
  • GET /api/v1/checklist_templates/<id>/timeline — Auditoría y actividades

Búsqueda