---
title: "Rebuild a build"
method: POST
path: "/apps/{app-slug}/builds/{build-slug}/rebuild"
tags: ["builds"]
---

# Rebuild a build

`POST /apps/{app-slug}/builds/{build-slug}/rebuild`

## Request

- Base URL: `https://api.bitrise.io/v0.1`
- URL: `https://api.bitrise.io/v0.1/apps/{app-slug}/builds/{build-slug}/rebuild`
- Auth: API key in header `Authorization`

Rebuild a finished build with the same parameters and workflow as the original build. Set `is_remote` to enable remote access for the new build, which requires permission for remote access on the app.

## Path parameters

- `app-slug` string, required
- `build-slug` string, required

## Request body

- object
  - `is_remote` boolean: Enable remote access for the new build. When omitted, the build is rebuilt without remote access.

## Response `201`

Created

- V0BuildTriggerRespModel
  - `build_number` integer: Deprecated
  - `build_slug` string: Deprecated
  - `build_url` string: Deprecated
  - `message` string
  - `results` V0BuildTriggerRespItemModel[]
    - `build_number` integer
    - `build_slug` string
    - `build_url` string
    - `message` string
    - `status` string
    - `triggered_pipeline` string
    - `triggered_workflow` string
  - `service` string
  - `slug` string
  - `status` string
  - `triggered_workflow` string: Deprecated

## Other responses

- `400`: Bad request - the build is not finished yet
- `401`: Unauthorized
- `403`: Forbidden - no permission to run builds, or to enable remote access
- `404`: Not found

## Changes

- **2026-10-21** `63188352478b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bitrise/apis/bitrise-api/changes/apps/:app-slug/builds/:build-slug/rebuild/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)
