17 endpoints.
| Method | Path | Summary |
|---|---|---|
POST | /api/communities/{communityId}/tasks/member-sections | Create a private section |
DELETE | /api/communities/{communityId}/tasks/member-sections/{sectionId} | Delete a private section with everything in it |
PUT | /api/communities/{communityId}/tasks/member-sections/{sectionId} | Edit a private section |
POST | /api/communities/{communityId}/tasks/member-sections/{sectionId}/headings | Add a heading to a private section |
DELETE | /api/communities/{communityId}/tasks/member-sections/headings/{headingId} | Delete a heading (and its tasks) from a private section |
PUT | /api/communities/{communityId}/tasks/member-sections/headings/{headingId} | Edit a heading in a private section |
GET | /api/communities/{communityId}/tasks/member-sections/member/{userId} | One member's private sections (manager view) |
GET | /api/communities/{communityId}/tasks/member-sections/mine | My private sections (أقسامي الخاصة) |
GET | /api/communities/{communityId}/tasks/member-sections/overview | Members' private tasks overview (مهام أنشأها الأعضاء) |
POST | /api/communities/{communityId}/tasks/member-sections/tasks | Add a task to a private section |
DELETE | /api/communities/{communityId}/tasks/member-sections/tasks/{taskId} | Delete a private task |
GET | /api/communities/{communityId}/tasks/member-sections/tasks/{taskId} | One private task, in the same shape as the task detail |
PUT | /api/communities/{communityId}/tasks/member-sections/tasks/{taskId} | Edit a private task |
POST | /api/communities/{communityId}/tasks/member-sections/tasks/{taskId}/approve | Approve a submitted private task (اعتماد) |
POST | /api/communities/{communityId}/tasks/member-sections/tasks/{taskId}/return | Return a submitted private task for changes (إعادة للتعديل) |
GET | /api/communities/{communityId}/tasks/settings/general | Tasks behaviour settings (سلوك المهام) |
PUT | /api/communities/{communityId}/tasks/settings/general | Save tasks behaviour settings |
POST /api/communities/{communityId}/tasks/member-sectionsNeeds the community switch. Creates a first heading too. Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
— | — | no | — | — |
Request body (required) — application/json
| Field | Type | Required | Description |
|---|---|---|---|
name | string | yes | — |
icon | string | no | — |
description | string | no | — |
firstHeadingName | string | no | — |
Responses
| Status | Description | Body |
|---|---|---|
201 | The section with its headings | — |
400 | INVALID_NAME / INVALID_ICON / INVALID_DESCRIPTION | — |
403 | MEMBER_SECTIONS_DISABLED | — |
409 | MEMBER_SECTIONS_LIMIT | — |
DELETE /api/communities/{communityId}/tasks/member-sections/{sectionId}Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
— | — | no | — | — |
sectionId | path | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | Deleted | — |
PUT /api/communities/{communityId}/tasks/member-sections/{sectionId}Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
— | — | no | — | — |
sectionId | path | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | The section tree | — |
POST /api/communities/{communityId}/tasks/member-sections/{sectionId}/headingsAuth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
— | — | no | — | — |
sectionId | path | yes | string | — |
Request body (required) — application/json
Type: MemberHeadingInput
Responses
| Status | Description | Body |
|---|---|---|
201 | The section tree | — |
409 | MEMBER_HEADINGS_LIMIT | — |
DELETE /api/communities/{communityId}/tasks/member-sections/headings/{headingId}Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
— | — | no | — | — |
headingId | path | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | The section tree | — |
PUT /api/communities/{communityId}/tasks/member-sections/headings/{headingId}Fields left out keep their value; an empty string clears a description. Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
— | — | no | — | — |
headingId | path | yes | string | — |
Request body — application/json
Type: MemberHeadingInput
Responses
| Status | Description | Body |
|---|---|---|
200 | The section tree | — |
404 | Not found (or not yours) | — |
GET /api/communities/{communityId}/tasks/member-sections/member/{userId}Read-only when supervision is off, editable when on. Requires tasks:manage. Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
— | — | no | — | — |
userId | path | yes | string | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | supervised, sections | — |
403 | Missing permission: tasks:manage | — |
GET /api/communities/{communityId}/tasks/member-sections/mineThe caller's private sections with headings and tasks, plus the settings. Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
— | — | no | — | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | settings, sections | — |
GET /api/communities/{communityId}/tasks/member-sections/overviewOne row per member with private sections — totals, done, waiting for approval, late. Requires tasks:manage. Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
— | — | no | — | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | settings, totals, members | — |
403 | Missing permission: tasks:manage | — |
POST /api/communities/{communityId}/tasks/member-sections/tasksThe owner is assigned to it. Points stay 0 unless a supervisor sets them. Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
— | — | no | — | — |
Request body (required) — application/json
| Field | Type | Required | Description |
|---|---|---|---|
headingId | string | yes | — |
title | string | yes | — |
description | string | no | — |
shortDescription | string | no | The card line; follows the description when left out |
priority | enum: HIGH, MEDIUM, LOW | no | — |
dueDate | string (date) | no | — |
estimatedMinutes | integer | no | — |
points | integer | no | Supervisor only |
Responses
| Status | Description | Body |
|---|---|---|
201 | taskId, section | — |
400 | INVALID_TITLE · INVALID_DESCRIPTION · INVALID_SHORT_DESCRIPTION · INVALID_ESTIMATE · INVALID_DUE_DATE · INVALID_PRIORITY | — |
409 | MEMBER_TASKS_LIMIT | — |
DELETE /api/communities/{communityId}/tasks/member-sections/tasks/{taskId}Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
— | — | no | — | — |
— | — | no | — | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | The section tree | — |
GET /api/communities/{communityId}/tasks/member-sections/tasks/{taskId}The owner, a supervising manager or a follow-only manager. Anyone else gets 404. Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
— | — | no | — | — |
— | — | no | — | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | The task with section, heading and the owner's assignment | — |
404 | Not found | — |
PUT /api/communities/{communityId}/tasks/member-sections/tasks/{taskId}The same fields as creating it; only the fields sent change. When the owner rewrites the title or description of a task built from a template that needs no approval, it becomes his own task and follows the community's supervision switch again — a completed one has to be reopened first (409 TEMPLATE_TASK_DONE).
Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
— | — | no | — | — |
— | — | no | — | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | The section tree | — |
409 | TEMPLATE_TASK_DONE | — |
POST /api/communities/{communityId}/tasks/member-sections/tasks/{taskId}/approveA tasks:manage holder, while supervision is on — or, for a task built from a template marked «تحتاج اعتماد», whatever the switch says (the template decides).
Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
— | — | no | — | — |
— | — | no | — | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | The updated assignment | — |
409 | NOT_SUBMITTED | — |
POST /api/communities/{communityId}/tasks/member-sections/tasks/{taskId}/returnAuth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
— | — | no | — | — |
— | — | no | — | — |
Request body — application/json
| Field | Type | Required | Description |
|---|---|---|---|
note | string | no | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | The updated assignment | — |
GET /api/communities/{communityId}/tasks/settings/generalWhether members may create private sections and whether managers supervise them. Any member reads it. Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
— | — | no | — | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | allowMemberSections, superviseMemberSections, memberTasksNeedApproval | — |
PUT /api/communities/{communityId}/tasks/settings/generalSend any of the booleans; the others keep their stored value. Requires tasks:manage (admin or a moderator who holds it). Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
— | — | no | — | — |
Request body (required) — application/json
| Field | Type | Required | Description |
|---|---|---|---|
allowMemberSections | boolean | no | — |
superviseMemberSections | boolean | no | — |
memberTasksNeedApproval | boolean | no | «مهام الأعضاء تحتاج اعتماد» — on: a task a member adds to his own section waits for an admin/moderator; off: «أنجزتها» approves it. Template tasks follow their template. |
Responses
| Status | Description | Body |
|---|---|---|
200 | Saved settings | — |
400 | INVALID_SETTINGS | — |
403 | Missing permission: tasks:manage | — |