---
updatedAt: 2026-06-15T14:44:56.000Z
agentTools:
  projectIndex: https://developers.lokalise.com/llms.txt
---

# Update a branch

Updates a branch in the project. Requires admin right.

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

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Projects with branches",
    "version": "1.0.0",
    "description": "Describes the API for projects with branches.\\n\\n**Project Type Compatibility**: Branching is **only supported for Software projects** (localization_files). Documents and Marketing projects do not support branching. All endpoints in this documentation require Software projects with branching enabled."
  },
  "servers": [
    {
      "url": "https://api.lokalise.com/api2"
    }
  ],
  "paths": {
    "/projects/{project_id}/branches/{branch_id}": {
      "put": {
        "responses": {
          "200": {
            "description": "OK",
            "headers": {},
            "content": {
              "application/json": {
                "example": {
                  "project_id": "3002780358964f9bab5a92.87762498",
                  "branch": {
                    "branch_id": 995991,
                    "name": "hotfix/needed-yesterday",
                    "created_at": "2019-10-03 14:15:50 (Etc/UTC)",
                    "created_at_timestamp": 1567001750,
                    "created_by": 1123,
                    "created_by_email": "john@lokalise.com"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "project_id": {
                      "type": "string"
                    },
                    "branch": {
                      "$ref": "#/components/schemas/Branches"
                    }
                  }
                }
              }
            }
          }
        },
        "summary": "Update a branch",
        "operationId": "Update a branch",
        "description": "Updates a branch in the project. Requires admin right.\n\nRequires <code>write_projects</code> OAuth access scope.",
        "tags": [
          "Branches"
        ],
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "description": "A unique project identifier",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "branch_id",
            "in": "path",
            "description": "A unique identifier of the branch.",
            "required": true,
            "schema": {
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "name": "hotfix/needed-yesterday"
              },
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Branch name."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Branches": {
        "type": "object",
        "properties": {
          "branch_id": {
            "type": "number",
            "description": "A unique identifier of the branch."
          },
          "name": {
            "type": "string",
            "description": "Branch name."
          },
          "created_at": {
            "type": "string",
            "description": "Date of branch creation."
          },
          "created_at_timestamp": {
            "type": "number",
            "description": "Unix timestamp when branch was created."
          },
          "created_by": {
            "type": "number",
            "description": "An identifier of a user who has created the branch."
          },
          "created_by_email": {
            "type": "string",
            "description": "An e-mail of a user who has created the branch."
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Token"
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ]
}
```