Insert a Branch
To insert a branch, the XML that you construct should look similar to the following example.
<insertXML> <insert> <reference>BranchInsert</reference> <property name="Organization" value="OrgName"/> <property name="Repository" value="RepoName"/> <property name="Branch" value="NewBranchName"/> <property name="Type" value="Branch"/> <xmlmetadata> <parentBranch>master</parentBranch> </xmlmetadata> </insert> </insertXML>
Properties for inserting a branch
Property | Required | Type | Description |
---|---|---|---|
Organization | Yes | String | The name of the organization that owns the repository. |
Repository | Yes | String | The name of the repository in which to insert the branch. |
Branch | Yes | String | The name of the new branch. |
Type | Yes | String | To insert a branch, specify "Branch". |
Metadata fields for branches
Field Path | Required | Type | Description |
---|---|---|---|
parentBranch | Yes | String | The name of the parent branch, to create the new branch from. |