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

Checklist Template Schema

ID du schéma
checklist_template
Collection
checklist_templates
Autorisations
  • Lirechecklist_template_view
  • Créerchecklist_template_create
  • Modifierchecklist_template_edit
  • Supprimerchecklist_template_delete

Champs

Checklist Template Schema

checklist_templates4 autorisations

Schema for validating checklist template entities

titlestringobligatoire

Template title

1–200 caractères
descriptionstringfacultatif

Template description

max. 2000 caractèresnullable
categorystringobligatoire

Template category (validated server-side against CHECKLIST_CATEGORIES)

1–64 caractères
targetEntityTypestringobligatoire

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

1–64 caractères
autoCreatebooleanfacultatif

Whether to automatically create checklists from this template

Par défaut : false
blocksCompletionbooleanfacultatif

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

Par défaut : falsenullable
blocksExitFromStatusstringfacultatif

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

nullable
itemsobject[]obligatoire
Par défaut : []
itemIduuidfacultatif

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

nullable
titlestringobligatoire

Item title

1–200 caractères
descriptionstringfacultatif

Item description

max. 1000 caractèresnullable
sortOrderintegerobligatoire

Sort order within the template

≥ 0
defaultAssigneeRolestringfacultatif

Default assignee role slug

max. 100 caractèresnullable
parentItemIduuidfacultatif

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

nullable
autoCompleteWhenSubsDonebooleanfacultatif

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

Par défaut : truenullable
requireAllSubsDonebooleanfacultatif

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

Par défaut : falsenullable
visibleIfobjectfacultatif

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.

Par défaut : nullnullable
terminatesIfobjectfacultatif

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

Par défaut : nullnullable
answerKeystringfacultatif

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

max. 40 caractèresMotifPar défaut : nullnullable
inputobjectfacultatif

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

Par défaut : nullnullable
typestringobligatoire
textnumberdatebooleanselectentity_ref
entityTypestringfacultatif
max. 64 caractèresnullable
optionsstring[]facultatif
Par défaut : []nullable
requiredbooleanfacultatif
Par défaut : false
unitstringfacultatif
max. 20 caractèresnullable
minnumberfacultatif
nullable
maxnumberfacultatif
nullable
documentobjectfacultatif

Dokumente, die dieser Schritt erzeugt oder anfordert

nullable
documentsobject[]obligatoire
1–20 éléments
keystringobligatoire
1–100 caractères
templateIdstringobligatoire
max. 64 caractères
titlestringfacultatif
max. 255 caractèresnullable
roleBindingsobjectfacultatif
nullable
startstringfacultatif
MANUALON_STEP_OPEN
Par défaut : "MANUAL"
reviewBeforeSendbooleanfacultatif
Par défaut : false
completeOnstringobligatoire
GENERATEDFILLEDSIGNED
bundlebooleanfacultatif
Par défaut : true
dueOffsetobjectfacultatif

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.

Par défaut : nullnullable
valueintegerobligatoire
0 – 10000
unitstringobligatoire
mhdwmo
directionstringobligatoire
beforeafter
anchorstringobligatoire
startendcreatednow
anchorFieldstringfacultatif

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

max. 100 caractèresMotifPar défaut : nullnullable
linkedTaskobjectfacultatif
nullable
enabledbooleanobligatoire
assigneeRuleobjectfacultatif
nullable
titleTemplatestringfacultatif
max. 300 caractèresnullable
dueDaysintegerfacultatif
0 – 3650nullable
dueOffsetobjectfacultatif

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

Par défaut : nullnullable
valueintegerobligatoire
0 – 10000
unitstringobligatoire
mhdwmo
directionstringobligatoire
beforeafter
anchorstringobligatoire
startendcreatednow
anchorFieldstringfacultatif

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

max. 100 caractèresMotifPar défaut : nullnullable
prioritystringfacultatif
LOWNORMALHIGHCRITICAL
nullable
approvalobjectfacultatif
nullable
requiredbooleanobligatoire
approverTypestringfacultatif
roleuserorg_unit_manager
nullable
approverValuestringfacultatif
max. 200 caractèresnullable
guardsobject[]facultatif

Guards inherited by checklist items created from this template

Par défaut : []nullable
typestringobligatoire
1–64 caractères
paramsobjectfacultatif
nullable
labelstringfacultatif
nullable
actionsobject[]facultatif

Actions inherited by checklist items created from this template

Par défaut : []nullable
typestringobligatoire
1–64 caractères
paramsobjectfacultatif
nullable
labelstringfacultatif
nullable
phasestringfacultatif
onEnteronExit
nullable
watchersobject[]facultatif

Reactive watchers inherited by checklist items created from this template

Par défaut : []nullable
typestringobligatoire
1–64 caractères
paramsobjectfacultatif
nullable
labelstringfacultatif
nullable
onTruestringfacultatif
completeskip
nullable
onFalsestringfacultatif
noopuncheck
nullable
debounceSecondsnumberfacultatif
≥ 0nullable
notifyOnFirebooleanfacultatif
nullable
choiceobjectfacultatif

Scenario selector; each option carries its own completion actions

nullable
modestringfacultatif

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

singlemulti
Par défaut : "single"
requiredbooleanfacultatif

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

Par défaut : falsenullable
optionsobject[]obligatoire
Par défaut : []
optionIduuidobligatoire
labelstringobligatoire
1–200 caractères
sortOrderintegerfacultatif
≥ 0nullable
injectobjectfacultatif

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.

Par défaut : nullnullable
checklistTemplateIduuidobligatoire
groupedbooleanfacultatif

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

Par défaut : true
answerKeyPrefixstringfacultatif

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

max. 40 caractèresMotifnullable
actionsobject[]facultatif
Par défaut : []nullable
typestringobligatoire
1–64 caractères
paramsobjectfacultatif
nullable
labelstringfacultatif
nullable
phasestringfacultatif
onEnteronExit
nullable
tagsstring[]facultatif

Template tags

Par défaut : []nullable
deadlineOffsetobjectfacultatif

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

nullable
valuenumberobligatoire
≥ 0
unitstringobligatoire
mhdwmo
directionstringfacultatif
beforeafternull
nullable
anchorstringfacultatif
startendcreatednownull
nullable
anchorFieldstringfacultatif
max. 100 caractèresMotifnullable
responsibleUserIduuidfacultatif

Responsible person (mutually exclusive with responsiblePositionId)

nullable
responsiblePositionIduuidfacultatif

Responsible position; resolved to its primary holder at spawn time

nullable
responsibleSourcestringfacultatif

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

org_unit_managernull
nullable
autoCreateTriggerobjectfacultatif

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

nullable
eventsstring[]obligatoire
min. 1 éléments
conditionsobject[]facultatif
Par défaut : []
fieldstringobligatoire
1–128 caractères
operatorstringobligatoire
eqneinchangedchanged_to
valueanyfacultatif
spawnOnobjectfacultatif
nullable
sourceEntityTypestringobligatoire
1–64 caractères
sourceFieldstringobligatoire
1–128 caractères
deadlineEscalationobjectfacultatif

Who to notify when the spawned checklist misses its deadline

nullable
notifyRecipientstringobligatoire
1–64 caractères
channelsstring[]facultatif
Par défaut : []

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

Recherche