---
title: "Merge a branch straight into the deploy (default) branch"
method: POST
path: "/build/api/v1/deployments/{deploymentId}/merge-to-default"
tags: ["Data Model"]
---

# Merge a branch straight into the deploy (default) branch

`POST /build/api/v1/deployments/{deploymentId}/merge-to-default`

## Path parameters

- `deploymentId` integer, required

## Request body

- MergeToDefaultBranchRequest
  - `branchId` integer
  - `branchName` string
  - `message` string, required
  - `removeBranchAfterMerge` boolean, nullable

## Response `200`

- MergeResponse
  - `branchDeleted` boolean, required
  - `merged` boolean, required

---

[API](https://skmtc.net/cube-js/apis/cube-cloud-rest-api.md) · [All operations](https://skmtc.net/cube-js/apis/cube-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cube-js/cube-cloud-rest-api/versions/a0c6b1d2ac96/schema)
