Skip to main content
PUT
/
balance-monitors
/
{monitor_id}
Update balance monitor
curl --request PUT \
  --url http://localhost:5001/balance-monitors/{monitor_id} \
  --header 'X-blnk-key: <api-key>'
Use blnk.BalanceMonitor.update to update a balance monitor.
blnk.BalanceMonitor.update
const response = await blnk.BalanceMonitor.update(
  'mon_e0e77b0c-4985-472a-9bf5-76a48b0259b0',
  {
    balance_id: 'bln_5ce86029-3c2e-4e2a-aae2-7fb931ca4c4f',
    condition: {
      field: 'credit_balance',
      operator: '<',
      value: 500,
      precision: 100,
    },
    call_back_url: 'https://api.example.com/balance-monitor',
  },
);
FieldDescription
idMonitor ID to update.
balance_idBalance to monitor.
conditionThreshold rule with field, operator, value, and precision.
call_back_urlWebhook URL when the condition is met.
descriptionOptional description for the monitor.

Response shape

200 OK
{
  "message": "BalanceMonitor updated successfully"
}
FieldDescription
messageConfirmation from Core.

Balance monitoring

Conditions and webhook behavior.

Update balance monitor

HTTP request and response schema.

Need help?

We are very happy to help you make the most of Blnk, regardless of whether it is your first time or you are switching from another tool. To ask questions or discuss issues, please contact us or join our Discord community.