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
Capabilities
Entity Permissions - Direct grants participate in template administration access together with ownership and module permissions.
Translations - The
titleanddescriptionfields 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
taskTemplate
integer
TaskTemplate ID.
Example Request
Example Response
Admin: Create
Create a new TaskTemplate.
Definition
POST /api/administration/tasks-2/templates
Request Keys
title*
string
-
Template title.
description
string
null
Template description.
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.
tag_ids
array
No tags
IDs of tags to attach.
Keys with * are required.
Behavior
user_idis set to the authenticated user and cannot select another owner.Omitting
lang_iduses the system language; this example suppliesen-USexplicitly.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
taskTemplate
integer
Template ID
Request Keys
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_idis replaced with the authenticated user when the request is prepared.Tags change only when
tag_idsis 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
taskTemplate
integer
TaskTemplate ID.
Example Request
Example Response
Last updated