Skip to main content
POST
/
api
/
v2
/
tasks
/
{taskId}
/
complete
Complete task
curl --request POST \
  --url https://api.example.com/api/v2/tasks/{taskId}/complete \
  --header 'Content-Type: application/json' \
  --data '
{
  "result": "<unknown>"
}
'
{
  "nextTaskId": "<string>"
}

Path Parameters

taskId
string
required

The unique identifier of the task to complete.

Body

application/json
result
any

The result data from the task's execution.

Response

Task completed successfully.

Task completed successfully.

nextTaskId
string | null
required

The ID of the next task in the workflow, if any, or null.