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

# Rebuilds a pipeline

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

Rebuilds a pipeline. You can rebuild the whole pipeline or only the unsuccessful and subsequent workflows by setting the partial flag to true.

## Path parameters

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

## Request body

- V0PipelineRebuildParams
  - `partial` boolean
  - `triggered_by` string

## Response `201`

Created

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `412` — Precondition Failed
- `500` — Internal Server Error

---

[API](https://skmtc.net/bitrise/apis/bitrise-api.md) · [All operations](https://skmtc.net/bitrise/apis/bitrise-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bitrise/bitrise-api/revisions/89468e4a014b/schema)
