TaskTemplateCompositions
Introduction
TaskTemplateCompositions combine multiple TaskTemplates. A TaskAssignment can use a composition to create one execution for each included template.
The description field uses the shared Rich Text HTML format.
Model Definition
Alias
taskTemplateComposition
Capabilities
Entity Permissions - Direct grants can allow permitted users to view, update, or delete a composition in administration.
Translations - The
titleanddescriptionfields are translatable.
Admin: List
List all accessible compositions, including soft-deleted records.
Definition
GET /api/administration/tasks-2/templates/compositions
Example Request
Example Response
Admin: Show
Show one composition, including a soft-deleted record.
Definition
GET /api/administration/tasks-2/templates/compositions/{taskTemplateComposition}
Route Parameters
taskTemplateComposition
integer
Composition ID.
Example Request
Example Response
Admin: Create
Create a composition and optionally attach templates.
Definition
POST /api/administration/tasks-2/templates/compositions
Request Keys
lang_id
string
System language
Language key. Use en-US for this example.
title*
string
-
Composition title.
description
string | null
null
HTML description.
sort_number
integer
Auto
Position within the folder.
task_template_ids
integer[]
[]
Templates to attach.
Keys with * are required.
Behavior
user_idis set to the authenticated user; a request-body value cannot select another owner.Supplying
task_template_idssynchronizes the composition's template relations.
Example Request
Example Response
Admin: Update
Update a composition and optionally replace its attached templates.
Definition
PUT /api/administration/tasks-2/templates/compositions/{taskTemplateComposition}
Route Parameters
taskTemplateComposition
integer
Composition ID.
Request Keys
lang_id
string
Language key.
folder_id
integer | null
Related folder ID, or null.
title
string
Composition title.
description
string | null
HTML description.
sort_number
integer
Position within the folder.
task_template_ids
integer[]
Complete replacement set; an empty array detaches all templates.
entity_permissions
object[]
Direct Entity Permissions.
Behavior
user_idis replaced with the authenticated user.task_template_idsis synchronized only when the key is present.
Example Request
Example Response
Admin: Delete
Soft-delete a composition.
Definition
DELETE /api/administration/tasks-2/templates/compositions/{taskTemplateComposition}
Route Parameters
taskTemplateComposition
integer
Composition ID.
Example Request
Example Response
Last updated