4 endpoints.
| Method | Path | Summary |
|---|---|---|
GET | /api/communities/{communityId}/tasks/{taskId}/attachments | Get task attachments (مرفقات المهمة) |
POST | /api/communities/{communityId}/tasks/{taskId}/attachments | Upload task attachments (رفع مرفقات) |
DELETE | /api/communities/{communityId}/tasks/{taskId}/attachments/{attachmentId} | Delete task attachment (حذف مرفق) |
GET | /api/communities/{communityId}/tasks/{taskId}/with-attachments | Get task with attachments (تفاصيل المهمة مع المرفقات) |
GET /api/communities/{communityId}/tasks/{taskId}/attachmentsReturns all attachments for a task Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
— | — | no | — | — |
— | — | no | — | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | List of attachments | object |
POST /api/communities/{communityId}/tasks/{taskId}/attachmentsUpload one or more files to a task. Max 10 files, 10MB each. Requires tasks:manage permission. Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
— | — | no | — | — |
— | — | no | — | — |
Request body (required) — multipart/form-data
| Field | Type | Required | Description |
|---|---|---|---|
taskAttachments | string (binary)[] | no | Files to upload (images, videos, or documents) |
Responses
| Status | Description | Body |
|---|---|---|
201 | Attachments uploaded successfully | — |
400 | Invalid file type or size | — |
403 | Requires tasks:manage permission | — |
DELETE /api/communities/{communityId}/tasks/{taskId}/attachments/{attachmentId}Deletes a single attachment from a task. Requires tasks:manage permission. Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
— | — | no | — | — |
— | — | no | — | — |
attachmentId | path | yes | string (uuid) | Attachment ID |
Responses
| Status | Description | Body |
|---|---|---|
200 | Attachment deleted successfully | — |
403 | Requires tasks:manage permission | — |
404 | Attachment not found | — |
GET /api/communities/{communityId}/tasks/{taskId}/with-attachmentsReturns task details including all attachments Auth: Bearer JWT required.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
— | — | no | — | — |
— | — | no | — | — |
Responses
| Status | Description | Body |
|---|---|---|
200 | Task with attachments | — |