On this page

Task assignments - assign tasks to members/groups/roles (تعيينات المهام)

17 endpoints.

MethodPathSummary
GET/api/communities/{communityId}/tasks/{taskId}/assignmentsGet task assignments (تعيينات المهمة)
POST/api/communities/{communityId}/tasks/{taskId}/assignmentsAssign task (تعيين مهمة)
DELETE/api/communities/{communityId}/tasks/assignments/{assignmentId}Remove assignment (إزالة التعيين)
POST/api/communities/{communityId}/tasks/assignments/{assignmentId}/approveApprove a task the member sent («اعتماد»)
POST/api/communities/{communityId}/tasks/assignments/{assignmentId}/request-helpRequest help (طلب مساعدة)
POST/api/communities/{communityId}/tasks/assignments/{assignmentId}/resolve-helpResolve help request (حل طلب المساعدة)
POST/api/communities/{communityId}/tasks/assignments/{assignmentId}/returnReturn a submitted task to the member («إرجاع»)
PUT/api/communities/{communityId}/tasks/assignments/{assignmentId}/statusUpdate assignment status (تحديث حالة التعيين)
GET/api/communities/{communityId}/tasks/assignments/{assignmentId}/submissionWhat the member handed in (طريقة الإكمال)
POST/api/communities/{communityId}/tasks/assignments/{assignmentId}/submission/filesHand in a file for a «رفع ملف» task
DELETE/api/communities/{communityId}/tasks/assignments/{assignmentId}/submission/files/{fileId}Remove a handed-in file before handing the task in
GET/api/communities/{communityId}/tasks/assignments/{assignmentId}/submission/files/{fileId}Download a handed-in file
GET/api/communities/{communityId}/tasks/awaiting-approvalTasks sent for approval, for the admin inbox (تسليمات للاعتماد)
GET/api/communities/{communityId}/tasks/help-requestsGet all help requests (طلبات المساعدة)
GET/api/communities/{communityId}/tasks/member-assignments/{memberId}Get member's assignments (مهام العضو)
GET/api/communities/{communityId}/tasks/my-assignmentsGet my task assignments (مهامي)
GET/api/communities/{communityId}/tasks/overdueOverdue tasks for the admin inbox (مهام تجاوزت موعدها)

Returns all assignments for a specific task Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——
——no——

Responses

StatusDescriptionBody
200List of assignmentsobject

Assigns a task to members, groups, or roles. Requires tasks:manage permission. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——
——no——

Request body (required) — application/json

Type: AssignTaskRequest

Responses

StatusDescriptionBody
201Assignments createdobject
403Requires tasks:manage permission—

Removes an assignment from a task. Requires tasks:manage permission. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——
——no——

Responses

StatusDescriptionBody
200Assignment removed—
403Requires tasks:manage permission—
404Assignment not found—

For a community task marked requiresApproval («تحتاج اعتماد») — a member's completion waits (IN_PROGRESS + submittedAt) until a manager approves it. Completes it, with points. Requires tasks:manage. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——
——no——

Responses

StatusDescriptionBody
200Completed—
403Requires tasks:manage—
409NOT_SUBMITTED (nothing waiting — or another manager decided first) / APPROVAL_NOT_REQUIRED—

Submits a help request for an assignment. The admin will be notified. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——
——no——

Request body (required) — application/json

Type: RequestHelpRequest

Responses

StatusDescriptionBody
200Help request submittedobject
403Can only request help for own assignment—

Marks a help request as resolved. Requires tasks:manage permission. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——
——no——

Request body — application/json

FieldTypeRequiredDescription
resolutionstringnoResolution message (optional)

Responses

StatusDescriptionBody
200Help request resolved—
403Requires tasks:manage permission—
404Assignment not found—

The task stays in progress, no longer waiting; the member is notified with the optional note (≤ 300 characters). Requires tasks:manage. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——
——no——

Request body — application/json

FieldTypeRequiredDescription
notestringno—

Responses

StatusDescriptionBody
200Returned—
403Requires tasks:manage—
409NOT_SUBMITTED—

Updates the status of an assignment. Members can update their own assignments. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——
——no——

Request body (required) — application/json

Type: UpdateAssignmentStatusRequest

Responses

StatusDescriptionBody
200Status updatedobject
403Can only update own assignment—
404Assignment not found—

The written answer of a «كتابة نص» task and the files of a «رفع ملف» task, on one assignment. The member himself or a tasks:manage holder; anyone else gets 404. Files are listed without storage keys — download them from the files route.

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——
assignmentIdpathyesstring—

Responses

StatusDescriptionBody
200The submissionobject
404No such assignment, or not yours to read—

One file per request (multipart field file), PDF, JPG, PNG or WebP — the type is read from the file's bytes — up to 25 MB, at most 5 files per task. Only the member the task is assigned to, before he hands it in. Stored privately and counted against the community's storage.

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——
assignmentIdpathyesstring—

Request body (required) — multipart/form-data

FieldTypeRequiredDescription
filestring (binary)no—

Responses

StatusDescriptionBody
201The files now on the assignment—
400INVALID_SUBMISSION_FILE · SUBMISSION_FILES_NOT_ALLOWED · SUBMISSION_FILE_MISSING—
404Not your assignment—
409SUBMISSION_LOCKED (already handed in) · SUBMISSION_FILES_LIMIT—
413SUBMISSION_FILE_TOO_LARGE—

The member only, while the task is not completed or waiting for approval. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——
assignmentIdpathyesstring—
fileIdpathyesstring—

Responses

StatusDescriptionBody
200The files left—
404No such file, or not your assignment—
409SUBMISSION_LOCKED—

The member himself or a tasks:manage holder. Always an attachment, never cached. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——
assignmentIdpathyesstring—
fileIdpathyesstring—

Responses

StatusDescriptionBody
200The file—
404No such file, or not yours to read—

Assignments a member sent for approval that no one has approved or returned yet, oldest first. Community tasks marked requiresApproval always; members' private tasks only while the community supervises them. Requires tasks:manage permission.

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——
limitquerynointegerHow many to return (total is always the full count)

Responses

StatusDescriptionBody
200Waiting submissionsobject
403Requires tasks:manage permission—

Returns all assignments where members have requested help. Requires tasks:manage permission. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——
——no——
——no——

Responses

StatusDescriptionBody
200List of help requestsobject
403Requires tasks:manage permission—

Returns all tasks assigned to a specific member. Requires tasks:manage permission. Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——
memberIdpathyesstring (uuid)Member ID to view assignments for

Responses

StatusDescriptionBody
200Member's assigned tasks with statsMyTasksResponse
403Requires tasks:manage permission—

Returns all tasks assigned to the current user with statistics Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——

Responses

StatusDescriptionBody
200User's assigned tasks with statsMyTasksResponse

Past-due, not-completed tasks that at least one assignee still owes, oldest due date first, with their section and heading. Requires tasks:manage permission.

Auth: Bearer JWT required.

Parameters

NameInRequiredTypeDescription
——no——
limitquerynointegerHow many tasks to return (total is always the full count)

Responses

StatusDescriptionBody
200Overdue tasksobject
403Requires tasks:manage permission—