Branch object
You can use the Branch object to create, update, and delete development branches on your account.
Structure
<Branch>
<id/>
<name/>
<createdBy/>
<createdDate/>
<modifiedBy/>
<modifiedDate/>
<parentId/>
<parentName/>
<packageId/>
<ready/>
<deleted/>
<stage/>
</Branch>
| Field | Type | Description |
|---|---|---|
id | string | The ID of the branch. |
name | string | The name of the branch. |
createdBy | string | The user who created the branch. |
createdDate | dateTime (yyyy-MM-dd'T'HH:mm:ss'Z') | The date and time when the branch was created. |
modifiedBy | string | The user who last modified the branch. |
modifiedDate | dateTime (yyyy-MM-dd'T'HH:mm:ss'Z') | The date and time when the branch was updated. |
parentId | string | The ID of the parent branch. |
parentName | string | The name of the parent branch. |
packageId | string | The ID of the packaged component from which the branch is created. |
ready | boolean | Whether the branch is ready to use. |
deleted | boolean | Whether the branch is deleted. |
stage | string | The branch status: CREATING, NORMAL (ready for use), or DELETING. |
Supported operations
| GET | QUERY | CREATE | UPDATE | EXECUTE | DELETE |
|---|---|---|---|---|---|
Using the QUERY operation
You must first retrieve the ID of your main branch, using the name of your current branch. If you haven't created any branches, your current branch will be "main". The QUERY operation supports the following query fields:
idnameparentIdparentNamecreatedBycreatedDatemodifiedBymodifiedDate
When you query a branch, it might be in one of the following states:
CREATING- The branch is being createdNORMAL- The branch is ready to useDELETING- The branch is being deleted
Was this topic helpful?