POST
/
threads
/
{thread_id}
/
runs
/
{run_id}
/
cancel
Cancel Run
curl --request POST \
  --url https://api.b-bot.space/v2/threads/{thread_id}/runs/{run_id}/cancel
"<any>"

Path Parameters

thread_id
string<uuid>
required

The ID of the thread.

run_id
string<uuid>
required

The ID of the run.

Query Parameters

wait
boolean
default:false
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

Response

200
application/json

Success

The response is of type any.