---
title: "POST /repos/{repo_id}/branches"
method: POST
path: "/repos/{repo_id}/branches"
tags: ["Repository Branch Manipulation"]
---

# POST /repos/{repo_id}/branches

`POST /repos/{repo_id}/branches`

Create a branch

## Request body

- NewBranch
  - `commit_id` string, required
  - `branch_name` string, required
  - `branch_description` string

## Response `201`

Resource created

- NewResourceId
  - `id` string, required — The id of the newly created resource

## Other responses

- `409` — An error occurred
- `default` — An error occurred

---

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