---
title: "Update a branch"
method: PUT
path: "/projects/{project_id}/branches/{branch_id}"
tags: ["Branches"]
---

# Update a branch

`PUT /projects/{project_id}/branches/{branch_id}`

Updates a branch in the project. Requires admin right.

Requires <code>write_projects</code> OAuth access scope.

## Path parameters

- `project_id` string, required
- `branch_id` number, required

## Request body

- object
  - `name` string — Branch name.

## Response `200`

OK

- object
  - `project_id` string
  - `branch` Branches
    - `branch_id` number — A unique identifier of the branch.
    - `name` string — Branch name.
    - `created_at` string — Date of branch creation.
    - `created_at_timestamp` number — Unix timestamp when branch was created.
    - `created_by` number — An identifier of a user who has created the branch.
    - `created_by_email` string — An e-mail of a user who has created the branch.

---

[API](https://skmtc.net/lokalise/apis/default-projects.md) · [All operations](https://skmtc.net/lokalise/apis/default-projects/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lokalise/default-projects/revisions/7bceba421b12/schema)
