cURL
Branches
Update a branch
Update an existing branch. Only the branch name can be changed.
Requires the Branching feature to be enabled on the account.
PATCH
cURL
Authorizations
Enter your token in the format token TOKEN
Headers
Two-Factor-Authentication token (optional)
Body
application/json
Name of the branch
Example:
"my-branch"
Response
OK
Name of the base branch this branch was created from. Only present for branches created with the newer branching system.
Example:
{
"id": "abcd1234cdef1234abcd1234cdef1234",
"username": "johndoe",
"name": "John Doe",
"gravatar_uid": "205e460b479e2e5b48aec07710c08d50"
}Example:
{
"id": "abcd1234cdef1234abcd1234cdef1234",
"username": "johndoe",
"name": "John Doe",
"gravatar_uid": "205e460b479e2e5b48aec07710c08d50"
}Available options:
creating_branch, merging_branch, syncing_branch, merged, success, branch_error, merge_conflict