On this page

Task templates - reusable task blueprints (قوالب المهام)

10 endpoints.

MethodPathSummary
GET/api/communities/{communityId}/tasks/templatesList templates (قائمة القوالب)
POST/api/communities/{communityId}/tasks/templatesCreate template manually (إنشاء قالب)
DELETE/api/communities/{communityId}/tasks/templates/{templateId}Delete template (حذف القالب)
GET/api/communities/{communityId}/tasks/templates/{templateId}Get template by ID (تفاصيل القالب)
PUT/api/communities/{communityId}/tasks/templates/{templateId}Update template (تحديث القالب)
POST/api/communities/{communityId}/tasks/templates/{templateId}/applyApply template (تطبيق القالب)
GET/api/communities/{communityId}/tasks/templates/categoriesGet template categories (فئات القوالب)
POST/api/communities/{communityId}/tasks/templates/from-headingSave a heading with its tasks as a template (حفظ العنوان كقالب)
POST/api/communities/{communityId}/tasks/templates/from-sectionSave a whole section as a template (حفظ القسم كقالب)
POST/api/communities/{communityId}/tasks/templates/from-taskCreate template from task (إنشاء قالب من مهمة)

Returns all task templates with optional category and kind filters. Requires tasks:manage permission (members read the ones offered to them at /member-sections/templates). Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——
categoryquerynostringFilter by category
kindquerynoenum: task, heading, sectionOnly templates of this kind

Responses

StatusDescriptionBody
200List of templatesobject

Creates a new task template from scratch. Requires tasks:manage permission. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——

Request body (required) — application/json

Type: CreateTemplateRequest

Responses

StatusDescriptionBody
201Template createdobject
403Requires tasks:manage permission—

Deletes a task template. Requires tasks:manage permission. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——
——no——

Responses

StatusDescriptionBody
200Template deleted—
403Requires tasks:manage permission—
404Template not found—

Returns a single template with its data Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——
——no——

Responses

StatusDescriptionBody
200Template detailsobject
404Template not found—

Updates an existing template. Requires tasks:manage permission. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——
——no——

Request body (required) — application/json

Type: CreateTemplateRequest

Responses

StatusDescriptionBody
200Template updated—
403Requires tasks:manage permission—
404Template not found—

A task template creates one task in headingId (optional title/dueDate overrides) and answers with the task. A heading template creates a heading with its tasks in sectionId; a section template creates a new section (no target). Both answer with { kind, sectionId, headingIds, taskCount }, and the new tasks inherit the section's assignments (one bulk write, no per-task webhooks). Requires tasks:manage permission.

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——
——no——

Request body (required) — application/json

Type: ApplyTemplateRequest

Responses

StatusDescriptionBody
201Task created from templateobject
400HEADING_REQUIRED · SECTION_REQUIRED · TEMPLATE_KIND_MISMATCH · TEMPLATE_TOO_LARGE—
403Requires tasks:manage permission—
404Template, heading or section not found—

Returns list of all unique template categories Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——

Responses

StatusDescriptionBody
200List of categoriesobject

A snapshot of a community heading and its active tasks (settings, points, approval, completion method — not due dates, dependencies or assignments). Apply it into any section. memberUsable offers it to members for their private sections. Requires tasks:manage permission.

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——

Request body (required) — application/json

FieldTypeRequiredDescription
headingIdstringyes—
namestringnoDefaults to the heading name
descriptionstringno—
categorystringno—
memberUsablebooleanno—

Responses

StatusDescriptionBody
201Template createdobject
400HEADING_REQUIRED · TEMPLATE_TOO_LARGE—
403Requires tasks:manage permission—
404Heading not found in this community—

A snapshot of a community section with its active headings and tasks, its colors and preset cover (not an uploaded cover image, due dates, dependencies or assignments). Applying it creates a new section. memberUsable offers it to members for their private sections. Requires tasks:manage permission.

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——

Request body (required) — application/json

FieldTypeRequiredDescription
sectionIdstringyes—
namestringnoDefaults to the section name
descriptionstringno—
categorystringno—
memberUsablebooleanno—

Responses

StatusDescriptionBody
201Template createdobject
400SECTION_REQUIRED · TEMPLATE_TOO_LARGE—
403Requires tasks:manage permission—
404Section not found in this community—

Creates a reusable template from an existing task. Requires tasks:manage permission. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——

Request body (required) — application/json

Type: CreateTemplateFromTaskRequest

Responses

StatusDescriptionBody
201Template created successfullyobject
403Requires tasks:manage permission—
404Source task not found—