This feature is only available in the Enterprise version

Deployments

Update deployment config

Update configuration for a managed Core instance.

PUT/deployments/{deployment_id}/config

Use this endpoint to override configuration on a deployment. Send only the keys you want to change. Cloud checks the keys against allowed_keys from Get deployment config, applies the overrides and restarts the instance.

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 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 (deploy_...). Do not pass instance_id here.

Body

The body is a JSON object of overrides. Include any one of the keys from allowed_keys on Get deployment config, or several. Omit keys you want to leave at the default. Do not send a key that is not in that list.

KeyType
BLNK_RATE_LIMIT_BURSTint
BLNK_RATE_LIMIT_CLEANUP_INTERVAL_SECint
BLNK_RATE_LIMIT_RPSint
BLNK_SERVER_MAX_REQUEST_BODY_SIZE_MBint
BLNK_SERVER_MAX_UPLOAD_SIZE_MBint
BLNK_SLACK_WEBHOOK_URLurl
BLNK_TRANSACTION_BATCH_SIZEint
BLNK_TRANSACTION_DISABLE_BATCH_REFERENCE_CHECKbool
BLNK_TRANSACTION_ENABLE_COALESCINGbool
BLNK_TRANSACTION_ENABLE_QUEUED_CHECKSbool
BLNK_TRANSACTION_LOCK_DURATIONint
BLNK_TRANSACTION_LOCK_WAIT_TIMEOUTint
BLNK_TRANSACTION_MAX_QUEUE_SIZEint
BLNK_TRANSACTION_MAX_WORKERSint
BLNK_WEBHOOK_HEADERSjson
BLNK_WEBHOOK_URLurl

Match the type shown for each key. Each key is explained on its configuration page: Server and security for the BLNK_SERVER_* and BLNK_RATE_LIMIT_* keys, Transactions for the BLNK_TRANSACTION_* keys, and Webhooks for the webhook keys.

Response

messagestring

Confirmation that the config was applied and the instance is restarting. Track progress with Get deployment details.