---
title: "Update Branch"
method: PUT
path: "/api/v2/branch/{branch_id}"
tags: ["Branches"]
---

# Update Branch

`PUT /api/v2/branch/{branch_id}`

Update branch information.

If a branch with the same name already exists, returns an error.

## Path parameters

- `branch_id` string, uuid, required — Unique identifier (UUID) of the branch to update

## Request body

- UpdateBranchRequest
  - `name` string, required — New name for the branch. Must be unique within the organization.

## Response `200`

Successful Response

- BranchItem
  - `id` string, uuid4
  - `name` string
  - `user_count` integer, nullable
  - `created_at` string, date-time

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/streampay/apis/stream-app.md) · [All operations](https://skmtc.dev/streampay/apis/stream-app/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/streampay/stream-app/revisions/515eeea7d260/schema)
