Logo
Admin API API Documentation

Update CBR

PUT {{URL_ORIGIN}}/api/cbrs/31

This API allows to update existing CBR.

Update CBR - Error Codes

All validations in create CBR

Code Message
101 [FieldName] not found
10001 Permission denied

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "id": "164", "data": { "id": "21", "name": "CBR test", "type": "DYNAMIC_MARKET_RATE", "value": "1", "actionType": "NOTIFY_BACKOFFICE", "priority": "1", "status": "ACTIVE" }, "requestType": "UpdateCBR", "name": "CBR test", "status": "Pending", "makerComment": "New value", "makerUserId": "auth0|6310aa4ba8cae50015ee3678", "makerUserType": "Admin", "timestamp": "2024-02-29T09:37:20.237" }



Curl
curl -X PUT 'URL_ORIGIN/api/cbrs/31' -d '{"name":"CBR_rule2","type":"MARKET_RATE","value":"1.5","actionType":"NOTIFY_BACKOFFICE","actionValue":"","instrumentIds":["1","2"],"priority":"7777","status":"ACTIVE","comment":"new CBR"}'

ENDPOINTS