For the complete documentation index, see llms.txt. This page is also available as Markdown.

TaskTemplates

Introduction

TaskTemplates store what a task is and how progress is reported.

Templates can have related TaskFields that define which values are captured into TaskProgressFields.

Templates can store Tags permitted by the tasks tag section. Tags are managed separately on templates, compositions, and assignments; they are not inherited between these resources.

TaskAssignments use template data to create concrete TaskExecutions.

The description field uses the shared Rich Text HTML format.

Model Definition

Alias

taskTemplate

Relations

Key
Relation
Type
Relation Field(s)

parent

Belongs to

parent_id

children

Has many

parent_id

taskAssignments

Has many

task_template_id

taskExecutions

Has many through

task_template_id, task_assignment_id

formFields

Has many

form_fields.form_id, form_fields.form_type

user

Belongs to

user_id

layouts

Has many

layouts.layoutable_type, layouts.layoutable_id

Capabilities

  • Entity Permissions - Direct grants participate in template administration access together with ownership and module permissions.

  • Translations - The title and description fields are translatable.

Admin: List

List all TaskTemplates in administration scope.

Definition

GET /api/administration/tasks-2/templates

Example Request

Example Response

List Quick-Assignable Templates

List TaskTemplates available for quick assignment.

Definition

GET /api/tasks-2/templates/quick-assignable

Example Request

Example Response

Admin: Show

Show one TaskTemplate in administration scope.

Definition

GET /api/administration/tasks-2/templates/{taskTemplate}

Route Parameters

Parameter
Type
Description

taskTemplate

integer

TaskTemplate ID.

Example Request

Example Response

Admin: Create

Create a new TaskTemplate.

Definition

POST /api/administration/tasks-2/templates

Request Keys

Key
Type
Default
Description

title*

string

-

Template title.

description

string

null

Template description.

folder_id

integer | null

null

Related Folder ID.

parent_id

integer

null

Parent template ID.

lang_id

string

system language

Language key.

sort_number

integer

auto

Sort number.

grade_scale

integer

null

Grade scale.

tour_enabled

boolean

false

Enables user tour for executions from this template.

quick_assignable

boolean

false

Enables quick-assignment usage.

grade_mode

string | null

null

Grade calculation mode.

entity_permissions

object[]

[]

tag_ids

array

No tags

IDs of tags to attach.

Keys with * are required.

Behavior

  • user_id is set to the authenticated user and cannot select another owner.

  • Omitting lang_id uses the system language; this example supplies en-US explicitly.

  • Tag IDs outside the tasks section's allowed set are ignored.

Example Request

Example Response

Admin: Update

Update an existing TaskTemplate.

Definition

PUT /api/administration/tasks-2/templates/{taskTemplate}

Route Parameters

Parameter
Type
Description

taskTemplate

integer

Template ID

Request Keys

Key
Type
Default
Description

title

string

-

Template title.

description

string

-

Template description.

folder_id

integer | null

-

Related folder ID.

parent_id

integer

-

Parent template ID.

lang_id

string

-

Language key.

sort_number

integer

-

Sort number.

grade_scale

integer

-

Grade scale.

tour_enabled

boolean

-

Tour-enabled flag.

quick_assignable

boolean

-

Quick-assignable flag.

grade_mode

string | null

-

Grade calculation mode.

entity_permissions

object[]

-

Direct Entity Permissions.

tag_ids

array

Current tags

Replacement set of tag IDs; an empty array removes all tags.

Behavior

  • user_id is replaced with the authenticated user when the request is prepared.

  • Tags change only when tag_ids is supplied. IDs outside the tasks section's allowed set are ignored.

Example Request

Example Response

Admin: Delete

Delete an existing TaskTemplate.

Definition

DELETE /api/administration/tasks-2/templates/{taskTemplate}

Route Parameters

Parameter
Type
Description

taskTemplate

integer

TaskTemplate ID.

Example Request

Example Response

Last updated