Complete a workflow task
Complete a workflow task.
Request syntax
PUT /workflows/${WORKFLOW_ID}/tasks/${TASK_ID} HTTP/1.1
Host: api.simworkflow.com
Authorization: Bearer ${PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
JSON
Request headers
Authorization |
|
---|---|
Content-Type |
|
Request body
The JSON input for the workflow task to complete.
Response syntax
HTTP/1.1 200 OK
Response elements
If the action is successful, the service sends back an HTTP 200 response.
Errors
HTTP status code |
Description |
---|---|
400 |
When the JSON input is not valid. |
See also general errors.
cURL example: complete a workflow task
PUT /workflows/23bBE1NGSll5narSt8NLsy/tasks/4qBMWPZxMPPC26Oogs047K
curl \
--request "PUT" \
--header "Authorization: Bearer ${PERSONAL_ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--url "https://api.simworkflow.com/workflows/23bBE1NGSll5narSt8NLsy/tasks/4qBMWPZxMPPC26Oogs047K" \
--data '{
"title": "Update issue title",
"description": "Please look at the issue again."
}'
RESPONSE
HTTP/1.1 200 OK