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

Task Schema

Schema-ID
task
Collection
tasks
Permissions
  • Lezentask_view
  • Aanmakentask_create
  • Wijzigentask_edit
  • Verwijderentask_delete

Velden

Task Schema

tasks4 permissions

Schema for validating task entities

titlestringvereist

Task title

1–200 tekens
generatedTitlestringoptioneel

ADR 1018 — title materialise_order last generated from the order line. While `title` still equals it, nobody renamed the task and the title follows a renamed weclapp line; null on rows created before the field (the history CREATE entry is used instead).

read-onlynullable
descriptionstringoptioneel

Task description

max. 4000 tekensnullable
statusstringvereist

Task status. PENDING_REVIEW is the intermediate state between IN_PROGRESS and DONE when reviewMode = hard. WAITING_FEEDBACK/OFFER_CREATED are open states used by the campaign task board (ADR 0746).

TODOIN_PROGRESSWAITING_FEEDBACKOFFER_CREATEDIN_REVIEWPENDING_REVIEWDONECANCELLED
prioritystringvereist

Task priority

LOWNORMALHIGHCRITICAL
projectIdstringoptioneel

Project UUID (legacy, use referenceId/referenceSchema)

nullable
listIduuidoptioneel

Optional task-list bucket (Todoist-style, ADR 0132). Independent of projectId/referenceId — a task can belong to a project AND a personal list at the same time.

nullable
parentTaskIdstringoptioneel

Parent task UUID for subtasks

nullable
orderintegervereist

Sort order within parent/project

≥ 0
assigneeIdstringoptioneel

Assigned user UUID. Deprecated: mirror of assigneeIds[0] for backward compatibility. Write via assigneeIds.

nullable
assigneeIdsstring[]optioneel

Assigned user UUIDs (multi-assignee). Canonical assignee field.

Default: []nullable
assignedByRulestringoptioneel

ADR 0561: short form of the assignee rule that produced assigneeIds at instantiation. Provenance only — never re-evaluated.

max. 500 tekensread-onlynullable
dispatchPendingbooleanoptioneel

ADR 0224: set when a template-materialized task should be auto-assigned by the dispatch pipeline (assignmentRule.strategy = ai_dispatch | ai_suggest). The worker event-router enqueues a dispatch job and clears this flag.

Default: false
dispatchDecisionIdstringoptioneel

ADR 0224: id of the dispatch_decision that assigned this task (ai_* strategy).

nullable
orgUnitIdstringoptioneel

Team / organizational unit UUID

nullable
teamCanManagebooleanoptioneel

ADR 0421: when true, every member of `orgUnitId` may fully edit and delete this task, not just work it off. Opt-in per task — the ADR-0192 default keeps manage rights with the creator / project manager / admin. No effect when `orgUnitId` is null. Only an owner (creator / project manager / campaign owner / admin) may flip this flag.

Default: false
assigneesCanEditbooleanoptioneel

ADR 1005: when true, the assignees (`assigneeId` / `assigneeIds`) may edit content and planning fields (TASK_ASSIGNEE_EDITABLE_FIELDS: title, description, priority, dates, …) — but not delete the task, reassign it or change its visibility/review. Opt-in per task; missing = false. Only an owner may flip this flag.

Default: false
reporterIdstringoptioneel

Reporter user UUID

nullable
reviewerIdstringoptioneel

Optional reviewer user UUID. When set together with reviewMode=hard, only this user (or a user with task_review/admin_bypass) may transition the task from PENDING_REVIEW to DONE.

nullable
reviewModestringoptioneel

Review enforcement: 'hard' inserts a PENDING_REVIEW gate before DONE and restricts the final transition to the reviewer; 'soft' only notifies the reviewer when the task is completed. Null/absent = no review.

hardsoftnull
nullable
sprintIdstringoptioneel

Sprint UUID

nullable
boardColumnIdstringoptioneel

Kanban board column ID

nullable
phaseIdstringoptioneel

Project phase UUID for Gantt

nullable
storyPointsintegeroptioneel

Story points estimate

0 – 100nullable
estimatedMinutesintegeroptioneel

Estimated effort in minutes

≥ 0nullable
maxMinutesintegeroptioneel

Hard cap on logged minutes for this task (applied when limitMode=minutes). Used by project limit checks; values are not auto-enforced unless project.limits.hardBlockOnExceed is true.

≥ 0nullable
salesOrderIduuidoptioneel

Linked sales_order UUID (the order this task originated from)

read-onlynullable
salesOrderItemIdstringoptioneel

ID of the orderItem inside the linked sales_order (matches salesOrder.orderItems[].id)

read-onlynullable
salesOrderItemSourcestringoptioneel

Origin of the linked sales-order item — internal or weclapp

internalweclappnull
read-onlynullable
positionIduuidoptioneel

ADR 0310: optional project_position this task hangs under. null = free task (no position). The position aggregates this task’s effort (loggedMinutes/consumedAmount) and carries the billing model (flat_rate vs. time_and_material).

nullable
limitModestringoptioneel

Limit mode: minutes (cap on logged time via maxMinutes), amount (cap on consumed EUR via maxAmount), or none.

minutesamountnonenull
nullable
maxAmountstringoptioneel

Hard cap on consumed billable amount in EUR (decimal string)

Patternnullable
maxAmountCurrencystringoptioneel

ISO 4217 currency for maxAmount (default EUR when null)

Patternnullable
consumedAmountstringoptioneel

Sum of time_record.consumedAmount for this task (cached, auto-computed by time-record service)

Patternread-onlynullable
hardBlockOnExceedbooleanoptioneel

Project-less fallback for the budget hard-block. When the task has no project, this opts the task into hard-blocking time bookings past maxMinutes/maxAmount (mirrors project.limits.hardBlockOnExceed). Ignored when the task belongs to a project — the project setting wins.

Default: nullnullable
defaultServiceTypeIduuidoptioneel

Pre-selected service_type UUID for time bookings on this task. Not enforced — users may pick a different type.

nullable
maxMinutesOverriddenAtdatetimeoptioneel

Set when maxMinutes was manually overridden (via task_override_budget). Reconcile from sales-order skips this field while set.

nullable
maxAmountOverriddenAtdatetimeoptioneel

Set when maxAmount was manually overridden (via task_override_budget). Reconcile from sales-order skips this field while set.

nullable
overrideReasonstringoptioneel

Last reason for a budget override (audit trail; full history lives in history collection).

max. 500 tekensnullable
weclappTaskIdstringoptioneel

Linked weclapp task ID (target for time-record write-through)

read-onlynullable
weclappSyncStatestringoptioneel

Sync state of this task against weclapp

pendingsyncederrornull
read-onlynullable
weclappLastSyncedAtdatetimeoptioneel

Last successful weclapp sync timestamp

read-onlynullable
weclappLastSyncErrorstringoptioneel

Last weclapp sync error message

max. 1000 tekensread-onlynullable
microsoftTodoIdstringoptioneel

ID of the mirrored task in Microsoft To Do (per connected user mailbox)

read-onlynullable
microsoftTodoListIdstringoptioneel

ID of the Microsoft To Do list this task is mirrored into

read-onlynullable
microsoftTodoEtagstringoptioneel

Last seen Microsoft Graph @odata.etag of the mirrored task — used for echo-suppression on inbound delta sync

read-onlynullable
todoLastSyncedAtdatetimeoptioneel

Last successful Microsoft To Do sync timestamp for this task

read-onlynullable
todoSyncSourcestringoptioneel

Which side last wrote the synced state (conflict-resolution hint)

localmicrosoftnull
read-onlynullable
startDatedateoptioneel

Task start date (YYYY-MM-DD)

nullable
dueDatedateoptioneel

Task due date (YYYY-MM-DD)

nullable
completedAtdatetimeoptioneel

Task completion timestamp

nullable
completedBystringoptioneel

User UUID of the person who marked the task as DONE (cleared on re-open)

nullable
scheduledStartAtdatetimeoptioneel

Optional scheduled start date-time for calendar display

nullable
scheduledEndAtdatetimeoptioneel

Optional scheduled end date-time for calendar display

nullable
taskTypestringvereist

Task type

TASKSTORYBUGEPICSUBTASKMILESTONE
labelsstring[]optioneel

Task labels (like Jira labels)

Default: []nullable
ticketIdstringoptioneel

Linked ticket UUID

nullable
assetIdsstring[]optioneel

Linked asset UUIDs

Default: []nullable
blockedByIdsstring[]optioneel

ADR 0218: predecessor task UUIDs that must reach a terminal status (DONE/CANCELLED) before this task may start. Single source of truth for task dependencies; validated server-side (existence, same-project, no cycles).

Default: []nullable
blockingIdsstring[]optioneel

ADR 0218: DERIVED downstream dependents (tasks whose blockedByIds reference this task). Computed on read via reverse lookup — read-only / protected, never written directly.

Default: []read-onlynullable
loggedMinutesintegeroptioneel

Logged time in minutes (auto-computed)

≥ 0read-onlynullable
nonBillableLoggedMinutesintegeroptioneel

ADR 0830: non-billable share (billableType NONE) of loggedMinutes, auto-computed. The time budget is loggedMinutes minus this value; missing = 0.

≥ 0read-onlynullable
loggedRealMinutesintegeroptioneel

ADR 0924: the same bookings as loggedMinutes summed as NET working time (breaks deducted, no rounding), auto-computed. loggedMinutes is the rounded working time; the UI shows "rounded (real)". Missing on tasks not recalculated since the change.

≥ 0read-onlynullable
tagsstring[]optioneel

Task tags

Default: []nullable
referenceIdstringoptioneel

Linked entity UUID

nullable
referenceSchemastringoptioneel

Schema type of the linked entity

nulltickethr_ticketcallback_requestprojectassetvehiclecontractpartyopportunitycoursecomplaintsales_ordersales_order_itemcampaign_itemcampaignemployee_profileonboarding_planemployee_onboardingemployee_offboarding
nullable
linkedEntitiesobject[]optioneel

Additional free-form cross-entity links (Mehrfachverknüpfung, 04.08.2026). UNLIKE phone_call (ADR 0386) this does NOT supersede the single reference: referenceId/referenceSchema stays the PRIMARY link (predecessor-sibling logic, partyScope/projectId query expansion, kanbans all key on it) — linkedEntities carries the secondary links, e.g. an opportunity-task also linked to the customer and a contact person. Same item shape as phone_call.linkedEntities.

Default: []nullable
entityTypestringvereist
ticketcallback_requestprojectopportunitycomplainttaskassetvehiclecontractpartycoursecampaigntime_recordsecret
entityIduuidvereist
rolestringvereist
linkedAgreementIduuidoptioneel

Set when the task was spawned from a performance_review agreement. Used to mirror task.status ↔ agreement.status. Legacy — superseded by linkedGoalId / linkedBenefitId.

nullable
linkedGoalIduuidoptioneel

Set when the task was spawned from a performance_review_goal. Used to mirror task.status ↔ goal.status.

nullable
linkedBenefitIduuidoptioneel

Set when the task was spawned from a performance_review_benefit. Used to mirror task.status ↔ benefit.status.

nullable
checklistStepRefobjectoptioneel
nullable
checklistIduuidvereist
itemIduuidvereist
campaignIduuidoptioneel

Backlink to the campaign that produced this task (CREATE_TASK action).

nullable
contractIduuidoptioneel

Optional link to the contract this task belongs to. Drives contract-aware lifecycle: recurrence.endDate is auto-capped to contract.endDate on creation, and worker handlers cap/cancel tasks when contract.endDate moves or contract.status transitions to SUSPENDED/CANCELLED/EXPIRED.

nullable
seriesMasterIduuidoptioneel

UUID of the recurring master task this exception belongs to. Mutually exclusive with `recurrence` — a series-master child cannot itself start a series. Set only by the materialization endpoint.

read-onlynullable
seriesOccurrenceDatedateoptioneel

YYYY-MM-DD of the specific occurrence this exception represents. Required when seriesMasterId is set; together they form the idempotency key.

read-onlynullable
seriesOccurrenceTypestringoptioneel

How this occurrence diverges from the master. exception = materialized instance with its own status; cancellation = skipped occurrence (hidden from the calendar but kept for audit).

exceptioncancellation
read-onlynullable
seriesOccurrenceTimeZonestringoptioneel

IANA TZ used when interpreting seriesOccurrenceDate. Defaults to the tenant TZ when null. Mirrors the calendar-event recurrence model.

max. 100 tekensread-onlynullable
recurrenceobjectoptioneel

Recurrence configuration for recurring tasks

nullable
patternstringvereist

Recurrence pattern

DAILYWEEKLYMONTHLYYEARLY
intervalintegervereist

Repeat every N units

1 – 365
daysOfWeekinteger[]optioneel

Days of week (0=Sun, 6=Sat) for WEEKLY pattern

nullable
dayOfMonthintegeroptioneel

Day of month for MONTHLY pattern

1 – 31nullable
endDatedateoptioneel

Stop recurring after this date

nullable
nextDueDatedateoptioneel

Next calculated due date

nullable
modestringoptioneel

Feedback 01a10bde: 'fixed' (default when absent) = fixed rhythm, the daily sweep rolls an overdue master forward and records the missed date as an open occurrence. 'afterCompletion' = the next occurrence is only created when the current one is completed; the sweep leaves an overdue master in place (stays visibly overdue).

fixedafterCompletionnull
nullable
complianceRuleIdstringoptioneel

Compliance rule that auto-generated this task (e.g. HU, AU, MAINTENANCE)

max. 50 tekensread-onlynullable
complianceDeadlinedateoptioneel

The compliance deadline date this task tracks (YYYY-MM-DD)

read-onlynullable
visibilitystringoptioneel

Task visibility. PRIVATE tasks are only visible to their creator and assignee.

PUBLICPRIVATE
Default: "PUBLIC"
difficultyintegeroptioneel

Task difficulty (0–100). Feeds the XP award formula when the task transitions to DONE. Defaults to 50 at award time if null.

0 – 100nullable
requiredSkillsobject[]optioneel

Structured skill requirements for this task. Drives XP awards to the task assignee on completion.

Default: []nullable
skillIduuidvereist

UUID of the skill_definition

minimumLevelstringoptioneel

Minimum proficiency level required. Null = any level.

BEGINNERINTERMEDIATEADVANCEDEXPERTnull
nullable
xpAwardedAtdatetimeoptioneel

Set once when XP was awarded for this task completion. Prevents duplicate XP grants on DONE→other→DONE transitions.

nullable
customerVisiblebooleanoptioneel

Whether this task is visible on the project customer portal (requires project.customerAccess feature viewAssignedTasks).

Default: false
customerAssigneePartyIdstringoptioneel

Customer party (contact or organization) this task is assigned to (public portal). Used alongside assigneeId.

nullable
customerCreatedbooleanoptioneel

True if the task was created by a customer via the public portal.

Default: false
templateIduuidoptioneel

task_template._id this task was instantiated from.

nullable
templateVersionstringoptioneel

Pinned template version at instantiation time (semver).

Patternnullable
templateNodeIdstringoptioneel

ID of the subTemplates[] link this task came from. Null on root tasks.

nullable
templatePathstringoptioneel

Denormalized "/slug-a/slug-b" path for fast roll-up analytics.

max. 500 tekensnullable
isTemplateRootbooleanoptioneel

True for the root task of a template execution.

Default: false
rootTaskIduuidoptioneel

Denormalized: every task in a template execution carries the root task id.

nullable
templateInputsobjectoptioneel

Snapshot of template input values (key → value) at instantiation time.

nullable
cancelReasonstringoptioneel

Reason for CANCELLED status. e.g. "template-instantiation-optional-skipped" when an optional sub-step was de-selected.

max. 200 tekensnullable
fieldServiceParkedbooleanoptioneel

True if the task is parked for on-site field service ("Wartestellung"). Orthogonal to status — a parked task keeps its normal workflow status.

Default: false
fieldServicePartyIduuidoptioneel

Anchor customer party for the on-site work. Prefilled from referenceId when referenceSchema = party. Used as the proximity origin.

nullable
fieldServiceAddressIduuidoptioneel

parties.addresses[]._id of the concrete on-site address (geocoding source for proximity). Falls back to the MAIN address when null.

nullable
parkedAtdatetimeoptioneel

Timestamp when the task was parked (cleared when un-parked).

read-onlynullable
parkedBystringoptioneel

User UUID who parked the task (cleared when un-parked).

read-onlynullable
vehicleRequiredbooleanoptioneel

ADR 0836: a vehicle is needed for this task. Copied onto the calendar_event when the task is scheduled; the Kfz-Einsatzplanung lists events with vehicleRequired and no linkedVehicleIds as open demands.

Default: false
vehiclePoolGroupstringoptioneel

ADR 0836: preferred fleet pool for the vehicle — the pool NAME as carried by vehicle.poolGroup (e.g. "Fahrzeuge-Bitburg"). Optional hint for the dispatcher, not a constraint.

max. 100 tekensnullable
linkedCalendarEventIduuidoptioneel

Primary calendar_event this task was scheduled into. Many parked tasks may point to one appointment. Set by the schedule-into-event endpoint. For split tasks (ADR 0219) this is the FIRST part-event; the full set lives in calendarEventIds.

read-onlynullable
calendarEventIdsuuid[]optioneel

All calendar_events this task was planned into (ADR 0219). For a split task the planner writes one event per part; linkedCalendarEventId mirrors [0] for backward compatibility. Readers that need every appointment should prefer this and fall back to [linkedCalendarEventId] when absent (older data). Set server-side (plan/commit + schedule-into-event); protected against direct PATCH.

read-only

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

Zoeken