CoderHelm Docs
APIRuns

Cancel a run

POST
/api/runs/{run_id}/cancel

Stops a run that is running. The run becomes cancelled, and the work it has not done yet is dropped; a pull request it already opened stays open. A run in any other state answers 400, so cancelling twice is harmless.

Authorization

api_key runs
headerAuthorizationBearer <token>

A team API key, made by an admin under Settings, API keys. Send it as Authorization: Bearer chk_....

Scope: runs

Path Parameters

run_id*string

The run's id.

Response Body

The run is cancelled.

application/json
  1. response

What a run action did.

status*string

retrying after a retry, cancelled after a cancel.

Example"retrying"
curl -X POST 'https://api.coderhelm.com/api/runs/01JB8X6F4M2C9QZ3T7V5W1K0HA/cancel' \  -H "Authorization: Bearer $CODERHELM_API_KEY"
{  "status": "cancelled"}
Edit on GitHub