Assign a task
PATCHhttp://localhost:8080/v1/tasks/:taskId/assign
Assign a task with taskId
to assignee
or the active user. Returns the task.
Request​
Responses​
- 200
- 400
- 403
- 404
On success returned.
An error is returned when the task is not active (not in the CREATED state).
An error is returned when task was already assigned, except the case when JWT authentication token used and allowOverrideAssignment = true
.
An error is returned when user doesn't have the permission to assign another user to this task.
An error is returned when the task with the taskId
is not found.
Authorization: TASKLIST-SESSION
name: TASKLIST-SESSIONtype: apiKeydescription: Cookie-based authentication is only available on Self-Managed clusters.in: cookie
name: bearer-keytype: httpscheme: bearerbearerFormat: JWT
- curl
- java
- nodejs
- csharp
- python
- go
- CURL
curl -L -X PATCH 'http://localhost:8080/v1/tasks/:taskId/assign' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TASKLIST-SESSION>' \
-d '{
"assignee": "string",
"allowOverrideAssignment": true
}'