Ledger balances

Update balance monitor

Update the details of a balance monitor.

PUT/balance-monitors/{monitor_id}

Authorization

If set, the API uses an API key for authentication. Include the following header in your requests: X-blnk-key: <api-key>.

Replace <api-key> with your secret API key. Ensure the key is kept secure and not exposed in public repositories or client-side code.

See also: Core API key.

Path

monitor_idstringrequiredpath

The unique id of the balance monitor to update.

Body

balance_idstringrequiredbody

Specifies the balance id of the ledger balance to be monitored.

conditionobjectrequiredbody

Defines the criteria for monitoring a specific balance type.

triggerstringbody

How you want the monitor to behave. edge notifies you once when the rule first matches, then stays quiet until the amount no longer matches.

level notifies you on every transaction that updates the balance while the rule still matches.

descriptionstringbody

A brief explanation of the purpose of the monitor. The PUT writes this as sent.

Response

messagestringrequired

Confirms the monitor was updated.