Update Human Task
Endpoint: POST /api/human/tasks/{taskId}/update
Updates or completes a claimed Human task with the form field inputs.
The invoking user should be one of the following:
- Cluster admin
- Task owner of the Human task
- Task claimant
Path parameters
Parameter | Description | Type | Required/ Optional |
---|---|---|---|
taskId | The task (execution) ID for the Human task execution to be updated. | string | Required. |
Query parameters
Parameter | Description | Type | Required/ Optional |
---|---|---|---|
complete | Whether to mark the task as complete or not. Set to false to keep the task in progress. Default is false. | boolean | Optional. |
Request body
Format the request as an object containing the form field inputs.
Example
{
"formFieldName": "yourInputHere"
}
Response
Returns 200 OK, indicating that the Human task has been updated or completed successfully.
Examples
Update a claimed Human task
Request
curl -X 'POST' \
'https://<YOUR-CLUSTER>/api/human/tasks/ca05f395-6d34-11f0-880f-0246e7260963/update?complete=false' \
-H 'accept: */*' \
-H 'X-Authorization: <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"approve":"Yes",
"comments":"lgtm"
}'
Response
Returns 200 OK, indicating that the Human task has been updated successfully.
Complete a claimed Human task
Request
curl -X 'POST' \
'https://<YOUR-CLUSTER>/api/human/tasks/ca05f395-6d34-11f0-880f-0246e7260963/update?complete=true' \
-H 'accept: */*' \
-H 'X-Authorization: <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"approve":"Yes",
"comments":"lgtm"
}'
Response
Returns 200 OK, indicating that the Human task has been completed successfully.