---
title: "create branch"
method: POST
path: "/repositories/{repository}/branches"
tags: ["branches"]
---

# create branch

`POST /repositories/{repository}/branches`

## Request body

- BranchCreation
  - `name` string, required
  - `source` string, required
  - `force` boolean
  - `hidden` boolean — When set, branch will not show up when listing branches by default. *EXPERIMENTAL*

## Response `201`

reference

## Other responses

- `400` — Validation Error
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Resource Not Found
- `409` — Resource Conflicts With Target
- `429` — too many requests
- `default` — Internal Server Error

---

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