POST
/v1/tools/stop_jobfreeStop a job
Stops a job that is still running. An action already running is not stopped: its work is under way and paid for, so it runs to the end and is charged when it finishes (status running_on); one still queued stops, not charged. A tool stopped is charged for the steps that finished, each at its own price and never more than its quote, and not for the step running or those not started; job_status says what stopping now charges (stop_now). Its finished steps are kept, so running it again reuses them; the step running ends with it. A job that has finished, or one answered at once, is left as it is. Free.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
job_id | string | Required |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/stop_job \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{"job_id":"…"}'Answer
{
"ok": true,
"result": {
"…": "…"
}
}What result holds is said above.
Every call can also answer an error: what comes back. Try it with your key from Account.