Update the details of a balance monitor.
curl --request PUT \
--url http://localhost:5001/balance-monitors \
--header 'Content-Type: application/json' \
--data '{
"balance_id": "bln_0be360ca-86fe-457d-be43-daa3f966d8f0",
"condition": {
"field": "debit_balance",
"operator": ">",
"value": 100000
},
"call_back_url": "https://api.myapp.com/balancemonitor"
}'
{
"monitor_id": "mon_e0e77b0c-4985-472a-9bf5-76a48b0259b0",
"balance_id": "bln_0be360ca-86fe-457d-be43-daa3f966d8f0",
"condition": {
"field": "debit_balance",
"operator": ">",
"value": 100000
},
"call_back_url": "https://api.myapp.com/balancemonitor",
"description": "",
"created_at": "2024-02-20T05:56:58.257315054Z"
}
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: Secure your Blnk server
Show child attributes
balance, inflight_balance, credit_balance, inflight_credit_balance , debit_balance, and inflight_debit_balance.curl --request PUT \
--url http://localhost:5001/balance-monitors \
--header 'Content-Type: application/json' \
--data '{
"balance_id": "bln_0be360ca-86fe-457d-be43-daa3f966d8f0",
"condition": {
"field": "debit_balance",
"operator": ">",
"value": 100000
},
"call_back_url": "https://api.myapp.com/balancemonitor"
}'
{
"monitor_id": "mon_e0e77b0c-4985-472a-9bf5-76a48b0259b0",
"balance_id": "bln_0be360ca-86fe-457d-be43-daa3f966d8f0",
"condition": {
"field": "debit_balance",
"operator": ">",
"value": 100000
},
"call_back_url": "https://api.myapp.com/balancemonitor",
"description": "",
"created_at": "2024-02-20T05:56:58.257315054Z"
}
Was this page helpful?
curl --request PUT \
--url http://localhost:5001/balance-monitors \
--header 'Content-Type: application/json' \
--data '{
"balance_id": "bln_0be360ca-86fe-457d-be43-daa3f966d8f0",
"condition": {
"field": "debit_balance",
"operator": ">",
"value": 100000
},
"call_back_url": "https://api.myapp.com/balancemonitor"
}'
{
"monitor_id": "mon_e0e77b0c-4985-472a-9bf5-76a48b0259b0",
"balance_id": "bln_0be360ca-86fe-457d-be43-daa3f966d8f0",
"condition": {
"field": "debit_balance",
"operator": ">",
"value": 100000
},
"call_back_url": "https://api.myapp.com/balancemonitor",
"description": "",
"created_at": "2024-02-20T05:56:58.257315054Z"
}