AlmondTill/G3N API

NewTaskInput

input type

Create-input for a Task. Assignees/teams/labels validate in-tenant + active; refs validate in-tenant + non-doomed; linkedFromTaskId validates completed-only. The taskbook inbox rows for the birth sets mint in the same transaction.

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — none — the CsCase divergence class: the caption IS the task title, and an omitted caption refuses VALIDATION/INVALID at the boundary instead of defaulting; when supplied it must be non-blank.
descriptionStringnoThe task's brief (≤8192).
priorityStringnoDefaults 'normal' when omitted.
reportToIDnoIn-tenant + active User at set.
assigneeUserIdsID [ID!]no≤8 distinct in-tenant active Users; omit = unassigned (the inbox open state).
teamIdsID [ID!]no≤4 distinct in-tenant active Teams.
labelIdsID [ID!]no≤16 distinct in-tenant active TaskLabels.
dueAtStringnoISO-8601 instant.
constructRefsTaskConstructRefInput [TaskConstructRefInput!]no≤16 distinct (type,id) refs — in-tenant + non-doomed at write (ref-only).
linkedFromTaskIdIDnoThe completed task this one reopens. Immutable.

Used by