---
title: "Aborts a pipeline"
method: POST
path: "/apps/{app-slug}/pipelines/{pipeline-id}/abort"
tags: ["pipelines"]
---

# Aborts a pipeline

`POST /apps/{app-slug}/pipelines/{pipeline-id}/abort`

## Request

- Base URL: `https://api.bitrise.io/v0.1`
- URL: `https://api.bitrise.io/v0.1/apps/{app-slug}/pipelines/{pipeline-id}/abort`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `Bitrise-Addon-Auth-Token`

Aborts a pipeline. You need to provide the app slug and the id of the pipeline. You can add an abort reason, choose to skip notifications and make the abort with success state.

## Path parameters

- `app-slug` string, required
- `pipeline-id` string, required

## Request body

- V0PipelineAbortParams
  - `abort_reason` string, required
  - `abort_with_success` boolean, required
  - `skip_notifications` boolean, required

## Response `200`

OK

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `500`: Internal Server Error

## Changes

- **2023-03-21** `274eb91c5877`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bitrise/apis/bitrise-api/changes/apps/:app-slug/pipelines/:pipeline-id/abort/post.md)

---

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