---
title: "Merge branch"
method: POST
path: "/v1/agents/{agentId}/branches/{branchId}/merge"
tags: ["Branches"]
---

# Merge branch

`POST /v1/agents/{agentId}/branches/{branchId}/merge`

## Request body

- MergeBranchBody
  - `deploymentMessage` string
  - `conflictResolutions` object[]
    - `path` string[], required
    - `strategy` 'ours' | 'theirs' | 'base', required
    - `value` unknown

## Response `200`

Branch merged

- MergeBranchResponse
  - `sequence` string, required
  - `message` string, required
  - `testRunIds` string[], required

## Other responses

- `400` — Merge conflicts or validation failure

---

[API](https://skmtc.net/poly/apis/polyai-agents-api.md) · [All operations](https://skmtc.net/poly/apis/polyai-agents-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/poly/polyai-agents-api/revisions/76f3c606e395/schema)
