Branches
Create a branch
Create a new branch.
Branch project provisioning runs asynchronously, so the newly created branch is returned in a transitional state (typically creating_branch) and only reaches success once the underlying project has been set up. Poll the branch resource until its state becomes success before performing further operations on it.
Requires the Branching feature to be enabled on the account.
Note: Creating a new branch may take several minutes depending on the project size.
post/projects/{project_id}/branches
Request
- Base URLhttps://eu.phrase.com/control-hub
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
project_idstring required
Project ID
Headers
X-PhraseApp-OTPstring
Two-Factor-Authentication token (optional)
Request body
Example request
{
"name": "my-branch",
"base": "parent-branch"
}Response
Created
Example response
{
"name": "new-branch",
"created_at": "2015-01-28T09:52:53Z",
"updated_at": "2015-01-28T09:52:53Z",
"merged_at": "2015-01-28T09:52:53Z",
"merged_by": {
"id": "abcd1234cdef1234abcd1234cdef1234",
"username": "joe.doe",
"name": "Joe Doe"
},
"created_by": {
"id": "abcd1234cdef1234abcd1234cdef1234",
"username": "joe.doe",
"name": "Joe Doe"
},
"state": "success",
"child_branches": [
"feature_2",
"feature_3"
]
}Changes
No recorded changes to this operation across all 1 revision of this API.