Instance API
Automating app releases with UI Bakery Instance API
Enabling the Instance API
To enable the Instance API, you will need to provide an authentication token via an environment variable:
Making Requests to the UI Bakery SCIM API
The UI Bakery Instance API available on the following URL, where UI_BAKERY_INSTANCE
is your domain.
To authenticate your requests, include the Authorization: Bearer TOKEN
header with the value provided in the UI_BAKERY_INSTANCE_API_TOKEN
environment variable
Reference
App methods:
Pull branch in app
POST
https://UI_BAKERY_INSTANCE/api/instance/app/{app_id}/pull
Pull latest commits for specified app/branch
Path Parameters
Name | Type | Description |
---|---|---|
appId* | String | UI Bakery app id |
Query Parameters
Name | Type | Description |
---|---|---|
uib_branch* | String | Branch name |
Relese app
POST
https://UI_BAKERY_INSTANCE/api/instance/app/{app_id}/release
Releasing the app to specified environments: If both "prod" and "staging" are false, the release becomes a "Draft"; if no "branch" parameter is provided, the main branch is used by default.
If version is not specified, the last valid version will be patched.
Path Parameters
Name | Type | Description |
---|---|---|
appId* | String | UI Bakery app id |
Request Body
Name | Type | Description |
---|---|---|
version | String | Release version |
description | String | Release description |
prod* | Boolean | Should release be created for Prod environment |
staging* | Boolean | Should release be created for Staging environment |
branch | String | From what branch release should be created |
Example integrations
Automate GitHub releasesAutomate GitLab releasesAutomate Bitbucket releasesLast updated