PUT
/
task
/
{taskId}
/
run
/
stop
curl --request PUT \
  --url 'http://localhost:2003/api/v1/task/task_123/run/stop?runId=run_456' \
  --header 'x-api-key: <your-api-key>'
{
  "success": true
}
curl --request PUT \
  --url 'http://localhost:2003/api/v1/task/task_123/run/stop?runId=run_456' \
  --header 'x-api-key: <your-api-key>'
{
  "success": true
}

Authorizations

x-api-key
string
header
required

Path Parameters

taskId
string
required

The ID of the task

Query Parameters

runId
string

The ID of the run. If not provided, stops the most recent run.

Response

200 - application/json

Successful response

The response is of type object.