Runs
Cancel Run
post/threads/{thread_id}/runs/{run_id}/cancel
Path parameters
thread_idstring uuid required
The ID of the thread.
The ID of the thread.
run_idstring uuid required
The ID of the run.
The ID of the run.
Query parameters
waitboolean
action'interrupt' | 'rollback'
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.
Response
Success
{"stackTrail":"paths:/threads/{thread_id}/runs/{run_id}/cancel:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}