POST
/
runs
/
cancel
Cancel Runs
curl --request POST \
  --url https://api.b-bot.space/v2/runs/cancel \
  --header 'Content-Type: application/json' \
  --data '{
  "status": "pending",
  "thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "run_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}'
This response does not have an example.

Query Parameters

action
enum<string>
default:interrupt

Action to take when cancelling the run. Possible values are interrupt or rollback. interrupt will simply cancel the run. rollback will cancel the run and delete the run and associated checkpoints afterwards.

Available options:
interrupt,
rollback

Body

application/json

Payload for cancelling runs.

Response

204

Success - Runs cancelled