Manual
CLI
API
Log in Get started free

Freeze or unfreeze a branch

Freezes a branch so keys and translations on it cannot change, or makes it active again.

Freezes a branch so keys and translations on it cannot change, or makes it active again.

HTTP
PATCH /branches/{branchId}

Access: Session token only. API keys get 403 with insufficient_scope.

Role: Project manager (organisation owners and admins are managers of every project).

Path parameters #

ParameterDescription
branchIdThe id of the branch.

Request body #

JSON.

FieldTypeRequiredDescription
frozenbooleanyestrue to freeze, false to unfreeze.
JSON
{ "frozen": true }

Response 200 #

The branch after the change.

JSON
{
  "id": "0197a3c8-6f75-7c66-a9bd-1d5a7e2c4f86",
  "projectId": "0197a3c6-4d53-7a44-87fb-9b3e5c0a2d64",
  "name": "feature/checkout",
  "base": "main",
  "status": "active",
  "progress": 40,
  "progressLabel": "80 / 200",
  "openKeys": 30,
  "ageMinutes": 15
}

Response fields #

FieldTypeDescription
idstringThe id of the branch.
projectIdstringThe id of its project.
namestringThe name.
basestring or nullThe name of the branch it was made from. null for main.
statusstringprotected (the main branch), active, frozen, or ready when every key is published in every language.
progressintegerPercent of published translations over all keys and languages.
progressLabelstringThe same as a text such as 80 / 200, with thousands separators.
openKeysintegerKeys that are not published in every language yet.
ageMinutesintegerMinutes since the branch last changed.

Errors #

StatuserrorWhen
401unauthenticatedThe token is missing or not valid.
404not_foundThe branch does not exist, you have no access to its project, or branchId is not a UUID.
403forbiddenYou are a member of the project, but not a manager.
409branch_protectedThe branch is the protected main branch.
422invalid_requestfrozen is not a boolean.
429rate_limitedToo many requests, see Rate limiting.

See Errors for the error format.