Logo
Admin API API Documentation

Create CBR

POST {{URL_ORIGIN}}/api/cbrs

This API allows to create a new CBR.

ID will be returned in the response, this ID is the unique identifier of the CBR and should be used when sending update commands.

Note: this ID can be retrieved via Get CBRs API.

Create CBR - Error Codes

Code Message
1 System is unavailable
100 Missing or invalid parameter: [FieldName]
101 [FieldName] not found
102 name already exists
105 Priority [value] already exists
10001 Permission denied

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "id": "31", "name": "CBR_rule1", "type": "MARKET_RATE", "value": "1.5", "actionType": "NOTIFY_BACKOFFICE", "priority": "7777", "status": "ACTIVE", "instrumentIds": ["1", "2"] }



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

ENDPOINTS