2 endpoints.
| Method | Path | Summary |
|---|---|---|
GET | /api/communities/{communityId}/tasks/member-sections/templates | Templates offered to members (قوالب متاحة للأعضاء) |
POST | /api/communities/{communityId}/tasks/member-sections/templates/{templateId}/apply | Use an offered template in my private sections |
GET /api/communities/{communityId}/tasks/member-sections/templatesThe community's task, heading and section templates an admin marked memberUsable. Any member; applying one adds it to the member's own private sections.
Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
— | — | no | — | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | The offered templates | object |
POST /api/communities/{communityId}/tasks/member-sections/templates/{templateId}/applyA section template becomes a new private section; a heading template goes into one of my sections (sectionId); a task template into one of my headings (headingId). Same limits as building it by hand; tasks become «تأكيد يدوي» private tasks assigned to me, with no points of their own. A template not offered to members answers 404.
Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
— | — | no | — | — |
templateId | path | yes | string | — |
Request body — application/json
| Field | Type | Required | Description |
|---|---|---|---|
sectionId | string | no | Heading template — my section |
headingId | string | no | Task template — my heading |
Responses
| Status | Description | Body |
|---|---|---|
201 | The private section it landed in, with its headings and tasks | — |
403 | MEMBER_SECTIONS_DISABLED · MEMBER_SECTION_FORBIDDEN | — |
404 | No such template offered to members, or not your section/heading | — |
409 | MEMBER_SECTIONS_LIMIT · MEMBER_HEADINGS_LIMIT · MEMBER_TASKS_LIMIT · MEMBER_TEMPLATE_TOO_LARGE | — |