On this page

6 endpoints.

MethodPathSummary
GET/api/communities/{communityId}/tasks/sectionsList all task sections (قائمة الأقسام)
POST/api/communities/{communityId}/tasks/sectionsCreate new section (إنشاء قسم)
DELETE/api/communities/{communityId}/tasks/sections/{sectionId}Delete section (حذف القسم)
GET/api/communities/{communityId}/tasks/sections/{sectionId}Get section by ID (تفاصيل القسم)
PUT/api/communities/{communityId}/tasks/sections/{sectionId}Update section (تحديث القسم)
POST/api/communities/{communityId}/tasks/sections/reorderReorder sections (إعادة ترتيب الأقسام)

Returns all task sections with headings count and tasks count Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
no

Responses

StatusDescriptionBody
200List of sections with statisticsobject
401Unauthorized - JWT token missing or invalid
403Forbidden - Not a community member

Creates a new task section. Requires tasks:manage permission. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
no

Request body (required) — multipart/form-data

FieldTypeRequiredDescription
namestringyes
iconstring (binary)noSection icon image (optional)
descriptionstringno
primaryColorstringno
secondaryColorstringno
visibilityTypeSectionVisibilityTypeno
memberIdsstring[]noFor SPECIFIC_MEMBERS visibility

Responses

StatusDescriptionBody
201Section created successfullyobject
403Requires tasks:manage permission

Deletes a task section and all its headings and tasks. Requires tasks:manage permission. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
no
no

Responses

StatusDescriptionBody
200Section deleted successfully
403Requires tasks:manage permission
404Section not found

Returns a single section with its headings and task counts Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
no
no

Responses

StatusDescriptionBody
200Section details with headingsobject
404Section not found

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

Parameters

NameInRequiredTypeDescription
no
no

Request body (required) — multipart/form-data

Type: UpdateTaskSectionRequest

Responses

StatusDescriptionBody
200Section updated successfully
403Requires tasks:manage permission
404Section not found

Updates the sort order of all sections. Requires tasks:manage permission. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
no

Request body (required) — application/json

Type: ReorderSectionsRequest

Responses

StatusDescriptionBody
200Sections reordered successfully
403Requires tasks:manage permission