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

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 title and description fields 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

Parameter
Type
Description

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

Key
Type
Default
Description

lang_id

string

System language

Language key. Use en-US for this example.

folder_id

integer | null

null

Related Folder ID.

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.

entity_permissions

object[]

[]

Keys with * are required.

Behavior

  • user_id is set to the authenticated user; a request-body value cannot select another owner.

  • Supplying task_template_ids synchronizes 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

Parameter
Type
Description

taskTemplateComposition

integer

Composition ID.

Request Keys

Key
Type
Description

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_id is replaced with the authenticated user.

  • task_template_ids is 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

Parameter
Type
Description

taskTemplateComposition

integer

Composition ID.

Example Request

Example Response

Last updated