---
title: "Update Branch"
method: PUT
path: "/organizations/branches/{branch_id}"
tags: ["organizations"]
---

# Update Branch

`PUT /organizations/branches/{branch_id}`

## Request

- Base URL: `https://api.alpha-grid.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.alpha-grid.ai/organizations/branches/{branch_id}`
- Auth: HTTP bearer

Update branch details.

## Path parameters

- `branch_id` integer, required

## Request body

- BranchCreate
  - `name` string, required
  - `code` string, nullable
  - `city` string, nullable
  - `state` string, nullable
  - `country` string, nullable
  - `address` string, nullable
  - `contact_email` string, nullable
  - `contact_phone` string, nullable
  - `settings` object
  - `organization_id` integer, required

## Response `200`

Successful Response

- BranchOut
  - `name` string, required
  - `code` string, nullable
  - `city` string, nullable
  - `state` string, nullable
  - `country` string, nullable
  - `address` string, nullable
  - `contact_email` string, nullable
  - `contact_phone` string, nullable
  - `settings` object
  - `id` integer, required
  - `organization_id` integer, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/alpha-grid/apis/alphagrid-backend-dev.md) - [All operations](https://skmtc.dev/alpha-grid/apis/alphagrid-backend-dev/llms.txt) - [OpenAPI document](https://skmtc.dev/alpha-grid/apis/alphagrid-backend-dev/revisions/13bab0bdd466?raw)
