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

Task Template Schema

Schema-ID
task_template
Collection
task_templates
Permissions
  • Lezentask_template_view
  • Aanmakentask_template_create
  • Wijzigentask_template_edit
  • Verwijderentask_template_delete

Velden

Task Template Schema

task_templates4 permissions

Reusable, versioned blueprint for repeating MSP workflows (ADR 0138). Sub-templates are referenced by id, not duplicated. Executions materialize as a tree of `tasks` carrying templateId/templateVersion.

namestringvereist
1–120 tekens
slugstringoptioneel

Stable URL slug, unique per tenant

1–80 tekensPatternnullable
descriptionstringoptioneel
max. 4000 tekensnullable
categorystringvereist
onboardingrolloutwartungincidentcomplianceoffboardingallgemein
tagsstring[]optioneel
Default: []
usableInstring[]optioneel

Where the template is offered for selection (ticket/project/contract/task/vehicle). Empty or missing = everywhere. Only applies to the root template, never to sub-template references.

unieke itemsnullable
componentOnlybooleanoptioneel

Building block: offered only as a sub-template inside other templates, never on its own. Missing = false.

nullable
ownerOrgUnitIduuidoptioneel
nullable
visibilitystringvereist
tenantorg_unitprivate
defaultAssigneeIdsuuid[]optioneel

Internal user ids pre-assigned to the task created from this template

Default: []
defaultOrgUnitIduuidoptioneel

Team the task created from this template is pinned to

nullable
assigneeRuleobjectoptioneel

ADR 0561: role reference resolved to task.assigneeIds at instantiation and frozen there. Wins over defaultAssigneeIds on the same level; an explicit assigneeOverrides entry still wins over both.

nullable
taskTypestringoptioneel

Task type of the root task created from this template. Absent/null = TASK.

TASKSTORYBUGEPICSUBTASKMILESTONEnull
nullable
versionstringvereist
PatternDefault: "1.0.0"read-only
statusstringvereist
draftactivedeprecated
Default: "draft"read-only
replacedByIduuidoptioneel
read-onlynullable
changelogNotestringoptioneel
max. 500 tekensnullable
versionFamilyIduuidoptioneel

Groups all versions of the same template. First version sets its own _id as familyId.

read-onlynullable
estimateModestringvereist
fixedpert
Default: "fixed"
estimateMinutesintegeroptioneel
≥ 0nullable
pertOptimisticintegeroptioneel
≥ 0nullable
pertLikelyintegeroptioneel
≥ 0nullable
pertPessimisticintegeroptioneel
≥ 0nullable
bufferPercentintegeroptioneel
0 – 200Default: 0
dueOffsetobjectoptioneel

ADR 0831: due date of the root task relative to the target entity (start/end/created) or the instantiation instant (now). A caller-supplied dueDate wins.

Default: nullnullable
valueintegervereist
0 – 10000
unitstringvereist
mhdwmo
directionstringvereist
beforeafter
anchorstringvereist
startendcreatednow
anchorFieldstringoptioneel

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

max. 100 tekensPatternDefault: nullnullable
requiredSkillsobject[]optioneel
Default: []
skillIduuidvereist
minLevelstringvereist
BEGINNERINTERMEDIATEADVANCEDEXPERT
mandatorybooleanoptioneel
Default: true
helpfulSkillsobject[]optioneel
Default: []
skillIduuidvereist
minLevelstringvereist
BEGINNERINTERMEDIATEADVANCEDEXPERT
checklistTemplateIduuidoptioneel
nullable
inlineChecklistobject[]optioneel
Default: []
iduuidvereist
textstringvereist
1–300 tekens
requiredbooleanoptioneel
Default: false
orderintegeroptioneel
≥ 0
parentNodeIduuidoptioneel
Default: nullnullable
defaultAssigneeIduuidoptioneel
nullable
visibleIfobjectoptioneel

ADR 0511: this checklist row is only materialised when the condition holds. May reference `inputs[].key` and answers from earlier rows.

Default: nullnullable
answerKeystringoptioneel

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

max. 40 tekensPatternDefault: nullnullable
choiceobjectoptioneel

Scenario selector; each option carries its own completion actions.

Default: nullnullable
modestringoptioneel
singlemulti
Default: "single"
requiredbooleanoptioneel
Default: falsenullable
optionsobject[]vereist
Default: []
optionIduuidvereist
labelstringvereist
1–200 tekens
sortOrderintegeroptioneel
≥ 0nullable
injectobjectoptioneel

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.

Default: nullnullable
groupedbooleanoptioneel

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

Default: true
answerKeyPrefixstringoptioneel

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

max. 40 tekensPatternnullable
actionsobject[]optioneel
Default: []nullable
typestringvereist
1–64 tekens
paramsobjectoptioneel
nullable
labelstringoptioneel
nullable
phasestringoptioneel
onEnteronExitnull
nullable
inputobjectoptioneel

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

Default: nullnullable
typestringvereist
textnumberdatebooleanselectentity_ref
entityTypestringoptioneel
max. 64 tekensnullable
optionsstring[]optioneel
Default: []nullable
requiredbooleanoptioneel
Default: false
unitstringoptioneel
max. 20 tekensnullable
minnumberoptioneel
nullable
maxnumberoptioneel
nullable
dueOffsetobjectoptioneel

ADR 0831: due date of this checklist row relative to the target entity; resolved into the checklist item at instantiation.

Default: nullnullable
valueintegervereist
0 – 10000
unitstringvereist
mhdwmo
directionstringvereist
beforeafter
anchorstringvereist
startendcreatednow
anchorFieldstringoptioneel

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

max. 100 tekensPatternDefault: nullnullable
knowledgeRefsobject[]optioneel
Default: []
typestringvereist
kb_articlefileurlvideo
refIdstringvereist
max. 1000 tekens
labelstringvereist
max. 200 tekens
rolestringoptioneel
guidereferencetraining
Default: "reference"
inlineTasksobject[]optioneel
Default: []
iduuidvereist
titlestringvereist
1–200 tekens
descriptionstringoptioneel
max. 2000 tekensnullable
orderintegervereist
≥ 0
parentNodeIduuidoptioneel
Default: nullnullable
taskTypestringoptioneel
TASKSTORYBUGEPICSUBTASKMILESTONEnull
nullable
optionalbooleanoptioneel
Default: false
estimateMinutesintegeroptioneel
≥ 0nullable
dueOffsetobjectoptioneel

ADR 0831: due date of this inline sub-task relative to the target entity.

Default: nullnullable
valueintegervereist
0 – 10000
unitstringvereist
mhdwmo
directionstringvereist
beforeafter
anchorstringvereist
startendcreatednow
anchorFieldstringoptioneel

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

max. 100 tekensPatternDefault: nullnullable
defaultAssigneeIdsuuid[]optioneel
Default: []
defaultOrgUnitIduuidoptioneel
nullable
assigneeRuleobjectoptioneel
nullable
blockedByNodeIdsuuid[]optioneel
Default: nullnullable
visibleIfobjectoptioneel

ADR 0511: the sub-task is only created when this condition holds against the instantiation inputs.

Default: nullnullable
subTemplatesobject[]optioneel
Default: []
iduuidvereist
templateIduuidvereist
versionPinstringoptioneel
Default: "latest"
orderintegervereist
≥ 0
optionalbooleanoptioneel
Default: false
parallelizablebooleanoptioneel
Default: false
quantitystringoptioneel
1per_assetper_userper_seat
Default: "1"
defaultAssigneeRolestringoptioneel
inheritproject_ownercustomer_contactunassigned
Default: "inherit"
defaultAssigneeIdsuuid[]optioneel
Default: []
defaultOrgUnitIduuidoptioneel
nullable
assigneeRuleobjectoptioneel
nullable
dueOffsetobjectoptioneel

ADR 0831: due date of this step relative to the target entity. Wins over the root rule of the referenced sub-template.

Default: nullnullable
valueintegervereist
0 – 10000
unitstringvereist
mhdwmo
directionstringvereist
beforeafter
anchorstringvereist
startendcreatednow
anchorFieldstringoptioneel

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

max. 100 tekensPatternDefault: nullnullable
conditionobjectoptioneel
nullable
fieldstringvereist
1–100 tekens
opstringvereist
eqneqinningtlt
valueanyvereist
visibleIfobjectoptioneel

ADR 0511: full AND/OR/NOT condition for this sub-template. Supersedes the single-leaf `condition`, which stays supported.

Default: nullnullable
blockedByNodeIdsuuid[]optioneel
Default: nullnullable
inputsobject[]optioneel
Default: []
keystringvereist
max. 40 tekensPattern
labelstringvereist
1–100 tekens
helperTextstringoptioneel
max. 200 tekensnullable
typestringvereist
stringnumberselectasset_refparty_refdate
optionsstring[]optioneel
nullable
requiredbooleanoptioneel
Default: false
defaultanyoptioneel
deliverablesobject[]optioneel
Default: []
typestringvereist
screenshotdocumentconfigsignoffasset_change
labelstringvereist
1–200 tekens
requiredbooleanoptioneel
Default: false
billableByDefaultbooleanoptioneel
Default: true
defaultBillingModestringoptioneel
tmfixedflat
Default: "tm"
serviceArticleIduuidoptioneel
nullable
riskLevelstringoptioneel
lowmediumhigh
Default: "low"
requiresApprovalbooleanoptioneel
Default: false
approverRolestringoptioneel
max. 60 tekensnullable
complianceTagsstring[]optioneel
Default: []
recurringRulestringoptioneel

DEPRECATED (ADR 0224): legacy iCal RRULE string. Use `recurrence.rrule`. The worker prefers `recurrence` and falls back to this for old templates.

max. 200 tekensnullable
recurringModestringoptioneel

Feedback 01a10bde: 'fixed' (default when absent) = a new root task per due occurrence. 'afterCompletion' = the recurring materializer skips a due occurrence while a root task it generated earlier is still open.

fixedafterCompletionnull
nullable
recurrenceobjectoptioneel

ADR 0224: template-level recurring schedule with fan-out target. Supersedes recurringRule.

Default: nullnullable
rrulestringvereist

iCal RRULE string.

1–300 tekens
timezonestringoptioneel

IANA TZ; null = tenant TZ.

max. 64 tekensnullable
targetobjectoptioneel
kindstringvereist
singularper_assetper_customer
Default: "singular"
assetFilterobjectoptioneel

per_asset: materialize one task per matching asset (linked via assetIds).

nullable
manufacturersstring[]optioneel
Default: []
schemaPatternsstring[]optioneel
Default: []
tagsstring[]optioneel
Default: []
customerFilterobjectoptioneel

per_customer: materialize one task per matching customer.

nullable
tagsstring[]optioneel
Default: []
contractIdsuuid[]optioneel
Default: []
maintenanceWindowobjectoptioneel
nullable
respectContractSlabooleanoptioneel
Default: false
earliestHourintegeroptioneel
0 – 23nullable
latestHourintegeroptioneel
0 – 23nullable
weekdaysOnlybooleanoptioneel
Default: false
healthTriggerobjectoptioneel

Optional asset-health/RMM trigger (Octoja) in addition to the calendar rule.

nullable
enabledbooleanoptioneel
Default: false
alertTypestringoptioneel
max. 80 tekensnullable
assetMetricstringoptioneel
max. 80 tekensnullable
lastMaterializedOccurrencedateoptioneel

Server-managed: YYYY-MM-DD of the last materialized occurrence (idempotency cursor).

nullable
assignmentRuleobjectoptioneel

ADR 0224: who gets assigned when a task is materialized from this template.

Default: nullnullable
strategystringvereist
rotationai_dispatchai_suggestfixed
poolobjectoptioneel

Candidate pool filter. Empty/absent → whole tenant (rotation) or global dispatch (ai_*).

nullable
orgUnitIdsuuid[]optioneel
Default: []
teamIdsuuid[]optioneel
Default: []
roleIdsuuid[]optioneel
Default: []
employmentTypesstring[]optioneel
Default: []
apprenticesOnlybooleanoptioneel
Default: false
requiredSkillIdsuuid[]optioneel
Default: []
explicitUserIdsuuid[]optioneel
Default: []
freeTextInstructionsstringoptioneel

Free-text rule appended to the LLM prompt. Only used by ai_* strategies (never by rotation).

max. 4000 tekensnullable
weightsOverrideobjectoptioneel

Per-template override of the tenant dispatch weights (ai_dispatch only).

nullable
skillMatchnumberoptioneel
0 – 100
availabilitynumberoptioneel
0 – 100
workloadnumberoptioneel
0 – 100
customerAffinitynumberoptioneel
0 – 100
slaUrgencynumberoptioneel
0 – 100
customerTiernumberoptioneel
0 – 100
geoProximitynumberoptioneel
0 – 100
languageMatchnumberoptioneel
0 – 100
rotationobjectoptioneel
nullable
balanceBystringoptioneel
countminutes
Default: "count"
avoidConsecutivebooleanoptioneel
Default: true
onUnavailablestringoptioneel
skipqueue
Default: "skip"
teachingPairobjectoptioneel

Pair a junior shadow with the matched senior. XP to junior, karma to both.

nullable
enabledbooleanoptioneel
Default: false
shadowApprenticesOnlybooleanoptioneel
Default: true
shadowSkillBelowLevelstringoptioneel
BEGINNERINTERMEDIATEADVANCEDEXPERT
nullable
xpToShadowbooleanoptioneel
Default: true
autoAssignModestringoptioneel

ai_* only: AI_FULL auto-assigns, AI_SUGGEST leaves unassigned with a suggestion.

AI_FULLAI_SUGGEST
nullable
fixedobjectoptioneel
nullable
assigneeRolestringoptioneel
max. 60 tekensnullable
userIduuidoptioneel
nullable
rewardsobjectoptioneel

ADR 0224: karma + skill-XP granted on completion of tasks from this template.

Default: nullnullable
karmaRewardintegeroptioneel
0 – 100000Default: 0
xpRewardsobject[]optioneel

Explicit per-skill XP override. Empty → fall back to the requiredSkills-derived XP.

Default: []
skillIduuidvereist
xpintegervereist
0 – 10000
requireVerifiedCompletionbooleanoptioneel

Anti-gaming: only grant rewards when deliverables/approval are satisfied, not on a bare status click.

Default: false
prerequisiteTemplateIdsuuid[]optioneel

Templates that must have a recent successful execution before instantiating this one (Pre-Flight v2 check).

Default: nullnullable
blockedByTemplateIdsuuid[]optioneel

ADR 0218: at instantiation into a project, this template’s root task is blocked by existing same-project root tasks of these templates.

Default: nullnullable
driftBaselineobjectoptioneel

Frozen baseline for drift detection. Set via /drift/apply-baseline or /drift/acknowledge.

Default: nullnullable
mediannumbervereist
≥ 0
q25numbervereist
≥ 0
q75numbervereist
≥ 0
computedAtdatetimevereist
markedKnownAtdatetimeoptioneel
nullable
executionCountintegeroptioneel
≥ 0Default: 0read-only
avgActualMinutesCachenumberoptioneel
≥ 0read-onlynullable
p50ActualMinutesCachenumberoptioneel
≥ 0read-onlynullable
p90ActualMinutesCachenumberoptioneel
≥ 0read-onlynullable
lastExecutedAtdatetimeoptioneel
read-onlynullable
lastStatsComputedAtdatetimeoptioneel
read-onlynullable

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

Zoeken