On this page

4 endpoints.

MethodPathSummary
GET/api/communities/{communityId}/tasks/{taskId}/attachmentsGet task attachments (مرفقات المهمة)
POST/api/communities/{communityId}/tasks/{taskId}/attachmentsUpload task attachments (رفع مرفقات)
DELETE/api/communities/{communityId}/tasks/{taskId}/attachments/{attachmentId}Delete task attachment (حذف مرفق)
GET/api/communities/{communityId}/tasks/{taskId}/with-attachmentsGet task with attachments (تفاصيل المهمة مع المرفقات)

Returns all attachments for a task Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
no
no

Responses

StatusDescriptionBody
200List of attachmentsobject

Upload one or more files to a task. Max 10 files, 10MB each. Requires tasks:manage permission. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
no
no

Request body (required) — multipart/form-data

FieldTypeRequiredDescription
taskAttachmentsstring (binary)[]noFiles to upload (images, videos, or documents)

Responses

StatusDescriptionBody
201Attachments uploaded successfully
400Invalid file type or size
403Requires tasks:manage permission

Deletes a single attachment from a task. Requires tasks:manage permission. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
no
no
attachmentIdpathyesstring (uuid)Attachment ID

Responses

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

Returns task details including all attachments Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
no
no

Responses

StatusDescriptionBody
200Task with attachments