---
title: "Add abort job run error"
method: POST
path: "/abort_job_run_errors"
tags: ["Abort job run errors"]
---

# Add abort job run error

`POST /abort_job_run_errors`

## Request

- Base URL: `https://localhost:8446/api/v2`
- URL: `https://localhost:8446/api/v2/abort_job_run_errors`
- Auth: API key in header `Authorization`

Add abort job run error

## Request body

- object
  - `code` string, required: Abort job run error code. Error can be added either in abort job run errors list or in ignored errors list (except CE_AGENT_OFFLINE). Check error codes here
  - `agents` number: Agents ids. The job runs will be aborted for the selected Agents
  - `jobs` number: Jobs ids. The job runs will be aborted for all the Agents for the selected Jobs
  - `apply_to_new_jobs` boolean: Abort job run for all Agents in new Jobs. False by default.
  - `apply_to_new_agents` boolean: Abort job run for all new Agents. False by default.

## Response `200`

Successful response

- object

## Other responses

- `default`: Error response. Depending on the error, either a 4xx or 5xx response status is returned.

---

[API](https://skmtc.dev/resilio/apis/resilio-api.md) - [All operations](https://skmtc.dev/resilio/apis/resilio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/resilio/apis/resilio-api/revisions/ca39130a395e?raw)
