This feature is only available in the Enterprise version

Deployments

Upgrade deployment

Upgrade a managed Core instance through Blnk Cloud.

POST/deployments/{deployment_id}/upgrade

Use this endpoint to upgrade a managed Core to the latest version Cloud supports. The deployment must be ACTIVE. See Managed instances to learn more.

Cloud starts a new runtime next to the current one, health-checks it, then cuts traffic over. Ledger data and the Core secret stay in place.

Cloud creates a new deployment_id and a new instance_id. After cutover, use those new ids. Any requests sent to the old instance_id would fail or return errors.

The response returns the new deployment_id on new_deployment. Get the new instance_id from Get deployment details once the successor is provisioned.

Enterprise authentication

Send these requests to https://api.cloud.blnkfinance.com on Blnk Cloud. On a self-hosted Enterprise deployment, send them to ENTERPRISE_PUBLIC_URL.

Pass an Enterprise API key, or an OAuth access token, in the X-blnk-key header. Create the key in Enterprise API keys, or issue a token with Enterprise OAuth.

This credential comes from the Cloud or Enterprise workspace. A Core API key belongs to the Core instance.

X-blnk-keystringrequiredheader

Enterprise API key, or an OAuth access token.

Path

deployment_idstringrequiredpath

Unique id of the deployment to upgrade (deploy_...). Do not pass instance_id here.

Body

The body is optional. Omit it, or send {}, to upgrade to the latest Core version Cloud supports.

forcebooleanbody

Set to true to run the upgrade even when the deployment is already on the latest version. Default is false. When false and the deployment is already current, Cloud returns upgrade_status: "skipped".

Response

new_deploymentobject

The successor deployment Cloud is bringing up. Same shape as Get deployment details. Use this deployment_id for later Deployments API calls.

old_deployment_idstring

The deployment_id you passed in the path. Cloud marks it UPGRADING, then retires it after cutover.

previous_versionstring

Core version the old deployment was running.

new_versionstring

Core version Cloud is rolling out.

upgrade_statusstring

in_progress when Cloud accepted the upgrade. skipped when the deployment is already on the latest version and you did not send force: true.

messagestring

Human-readable status. Track progress with Get deployment details on new_deployment.deployment_id.