Boomi Platform API Reference (1.0.0) - Branch
You can use the Branch object to create, update, and delete development branches on your account.
Creates a Branch object
- To create a branch, you need the branch ID for the branch from which you want to create a new branch. New branches return ready as false until the creating stage has cleared.
- You can also create a branch from a packaged component. To do so, use the ID of the packaged component as the packageId.
- To create a branch from a deployment, use the ID of the deployment for the packageId.
Authorizations:
Request Body schema: optional
| createdBy | string The user who created the branch. |
| createdDate | string <date-time> The date and time when the branch was created. |
| deleted | boolean Whether the branch is deleted. |
| deploymentId | string |
| description | string |
| id | string The ID of the branch. |
| modifiedBy | string The user who last modified the branch. |
| modifiedDate | string <date-time> The date and time when the branch was updated. |
| name | string The name of the branch. |
| packageId | string The ID of the packaged component from which the branch is created. |
| parentId | string The ID of the parent branch. |
| ready | boolean Whether the branch is ready to use. |
| stage | string The branch status: CREATING, NORMAL (ready for use), or DELETING. |
Responses
Response Schema:
| createdBy | string The user who created the branch. |
| createdDate | string <date-time> The date and time when the branch was created. |
| deleted | boolean Whether the branch is deleted. |
| deploymentId | string |
| description | string |
| id | string The ID of the branch. |
| modifiedBy | string The user who last modified the branch. |
| modifiedDate | string <date-time> The date and time when the branch was updated. |
| name | string The name of the branch. |
| packageId | string The ID of the packaged component from which the branch is created. |
| parentId | string The ID of the parent branch. |
| ready | boolean Whether the branch is ready to use. |
| stage | string The branch status: CREATING, NORMAL (ready for use), or DELETING. |
Request samples
- Payload
{- "parentId": "branchId",
- "name": "branchname"
}Response samples
- 200
- 403
- 410
- 503
{- "@type": "Branch",
- "id": "branchId",
- "name": "branchname",
- "createdBy": "userboomi.com",
- "createdDate": "2024-02-12T21:05:27.590Z",
- "parentId": "parentbranchId",
- "ready": "false",
- "deleted": "false",
- "stage": "CREATING"
}Retrieves an instance of a Branch object
When you have the branch ID, you can query for additional information about the branch. Send an HTTP GET where {accountId} is the ID of the authenticating account and {branchId} is the ID of the branch you want to query.
Authorizations:
path Parameters
| id required | string The ID of the branch. |
Responses
Response Schema:
| createdBy | string The user who created the branch. |
| createdDate | string <date-time> The date and time when the branch was created. |
| deleted | boolean Whether the branch is deleted. |
| deploymentId | string |
| description | string |
| id | string The ID of the branch. |
| modifiedBy | string The user who last modified the branch. |
| modifiedDate | string <date-time> The date and time when the branch was updated. |
| name | string The name of the branch. |
| packageId | string The ID of the packaged component from which the branch is created. |
| parentId | string The ID of the parent branch. |
| ready | boolean Whether the branch is ready to use. |
| stage | string The branch status: CREATING, NORMAL (ready for use), or DELETING. |
Response samples
- 200
- 403
- 410
- 503
{- "Branch": {
- "id": "Qjox",
- "name": "main",
- "createdBy": "adminboomi.com",
- "createdDate": "2023-08-24T02:10:07Z",
- "ready": "true",
- "deleted": "false",
- "stage": "NORMAL",
- "description": "main branch"
}
}Modifies or updates a Branch object
To update a branch, you need the branch ID. Currently, you can only update the name of the branch.
Authorizations:
path Parameters
| id required | string The ID of the branch. |
Request Body schema: optional
| createdBy | string The user who created the branch. |
| createdDate | string <date-time> The date and time when the branch was created. |
| deleted | boolean Whether the branch is deleted. |
| deploymentId | string |
| description | string |
| id | string The ID of the branch. |
| modifiedBy | string The user who last modified the branch. |
| modifiedDate | string <date-time> The date and time when the branch was updated. |
| name | string The name of the branch. |
| packageId | string The ID of the packaged component from which the branch is created. |
| parentId | string The ID of the parent branch. |
| ready | boolean Whether the branch is ready to use. |
| stage | string The branch status: CREATING, NORMAL (ready for use), or DELETING. |
Responses
Response Schema:
| createdBy | string The user who created the branch. |
| createdDate | string <date-time> The date and time when the branch was created. |
| deleted | boolean Whether the branch is deleted. |
| deploymentId | string |
| description | string |
| id | string The ID of the branch. |
| modifiedBy | string The user who last modified the branch. |
| modifiedDate | string <date-time> The date and time when the branch was updated. |
| name | string The name of the branch. |
| packageId | string The ID of the packaged component from which the branch is created. |
| parentId | string The ID of the parent branch. |
| ready | boolean Whether the branch is ready to use. |
| stage | string The branch status: CREATING, NORMAL (ready for use), or DELETING. |
Request samples
- Payload
{- "id": "branchId",
- "name": "branchname"
}Response samples
- 200
- 403
- 410
- 503
{- "@type": "Branch",
- "id": "branchId",
- "name": "branchname",
- "createdBy": "userboomi.com",
- "createdDate": "2024-02-12T21:05:28Z",
- "modifiedBy": "userboomi.com",
- "modifiedDate": "2024-02-14T14:20:52.402Z",
- "parentId": "parentbranchId",
- "ready": "true",
- "deleted": "false",
- "stage": "NORMAL"
}Retrieves multiple Branch objects by identifier
To learn more about bulk, refer to the topic Bulk GET operations.
Authorizations:
Request Body schema: optional
Array of objects (BulkId) | |
| type | string Enum: "GET" "DELETE" "UPDATE" "CREATE" |
Responses
Response Schema:
Array of objects | |||||||||||
Array
| |||||||||||
Request samples
- Payload
{- "request": [
- {
- "id": "56789abc-def0-1234-5678-9abcdef01234"
}
], - "type": "GET"
}Response samples
- 200
- 403
- 410
- 503
{- "response": [
- {
- "Result": {
- "createdBy": "string",
- "createdDate": "2019-08-24T14:15:22Z",
- "deleted": true,
- "deploymentId": "string",
- "description": "string",
- "id": "string",
- "modifiedBy": "string",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "name": "string",
- "packageId": "string",
- "parentId": "string",
- "ready": true,
- "stage": "string"
}, - "index": 0,
- "id": "string",
- "statusCode": 0,
- "errorMessage": "string"
}
]
}Queries for a Branch object(s)
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.
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.
For general information about the structure of QUERY filters, their sample payloads, and how to handle the paged results, refer to Query filters and Query paging.
Authorizations:
Request Body schema: optional
required | object | ||||||||||
| |||||||||||
Responses
Response Schema:
| numberOfResults | integer <int32> |
| queryToken | string By default, the queryToken parameter is not available in the query response. It appears only when the query response contains more than 100 results. The maximum number of results returned per query is 100. To retrieve the next set of results, use the queryToken in the queryMore request. |
Array of objects (Branch) |
Request samples
- Payload
{- "QueryFilter": {
- "expression": {
- "operator": "EQUALS",
- "property": "name",
- "argument": [
- "branchname"
]
}
}
}Response samples
- 200
- 403
- 410
- 503
{- "QueryResult": {
- "numberOfResults": "1",
- "result": {
- "xsi_type": "Branch",
- "id": "branchId",
- "name": "branchname",
- "createdBy": "userboomi.com",
- "createdDate": "2023-09-12T18:14:39Z",
- "ready": "true",
- "deleted": "false",
- "stage": "NORMAL"
}
}
}Retrieves additional results for a Branch query
To learn about using queryMore, refer to the topic Query paging.
Authorizations:
Request Body schema: text/plainrequired
Responses
Response Schema:
| numberOfResults | integer <int32> |
| queryToken | string By default, the queryToken parameter is not available in the query response. It appears only when the query response contains more than 100 results. The maximum number of results returned per query is 100. To retrieve the next set of results, use the queryToken in the queryMore request. |
Array of objects (Branch) |
Response samples
- 200
- 403
- 410
- 503
{- "QueryResult": {
- "numberOfResults": "1",
- "result": {
- "xsi_type": "Branch",
- "id": "branchId",
- "name": "branchname",
- "createdBy": "userboomi.com",
- "createdDate": "2023-09-12T18:14:39Z",
- "ready": "true",
- "deleted": "false",
- "stage": "NORMAL"
}
}
}