Waiting for engine...
Skip to main content

Boomi Platform API Reference (1.0.0) - Branch

Toggle Pane

Download OpenAPI Specification: Download

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:
basicAuth
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

Content type
{
  • "parentId": "branchId",
  • "name": "branchname"
}

Response samples

Content type
{
  • "@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:
basicAuth
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

Content type
{
  • "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:
basicAuth
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

Content type
{
  • "id": "branchId",
  • "name": "branchname"
}

Response samples

Content type
{
  • "@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"
}

Deletes a Branch object

Deletes a branch

Authorizations:
basicAuth
path Parameters
id
required
string

The ID of the branch.

Responses

Response samples

Content type
{
  • "message": "Access denied due to insufficient permissions."
}

Retrieves multiple Branch objects by identifier

To learn more about bulk, refer to the topic Bulk GET operations.

Authorizations:
basicAuth
Request Body schema:
optional
Array of objects (BulkId)
type
string
Enum: "GET" "DELETE" "UPDATE" "CREATE"

Responses

Response Schema:
Array of objects
Array
required
object (Branch)
index
integer <int32>
id
string
statusCode
integer <int32>
errorMessage
string

Request samples

Content type
{
  • "request": [
    • {
      }
    ],
  • "type": "GET"
}

Response samples

Content type
{
  • "response": [
    • {
      }
    ]
}

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 created
  • NORMAL: The branch is ready to use
  • DELETING: 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:
basicAuth
Request Body schema:
optional
required
object
required
BranchSimpleExpression (object) or BranchGroupingExpression (object) (BranchExpression)
One of
operator
required
string
Enum: "EQUALS" "LIKE" "NOT_EQUALS" "IS_NULL" "IS_NOT_NULL" "BETWEEN" "GREATER_THAN" "GREATER_THAN_OR_EQUAL" "LESS_THAN" "LESS_THAN_OR_EQUAL" "CONTAINS" "NOT_CONTAINS"
property
required
string
argument
Array of strings

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

Content type
Example
{
  • "QueryFilter": {
    • "expression": {
      }
    }
}

Response samples

Content type
{
  • "QueryResult": {
    • "numberOfResults": "1",
    • "result": {
      }
    }
}

Retrieves additional results for a Branch query

To learn about using queryMore, refer to the topic Query paging.

Authorizations:
basicAuth
Request Body schema: text/plain
required
string

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

Content type
{
  • "QueryResult": {
    • "numberOfResults": "1",
    • "result": {
      }
    }
}