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 |
Request Body
{"name"=>"CBR_rule1", "type"=>"MARKET_RATE", "value"=>"1.5", "actionType"=>"NOTIFY_BACKOFFICE", "actionValue"=>"", "instrumentIds"=>["1", "2"], "priority"=>"7777", "status"=>"ACTIVE"}
RESPONSES
status: OK
{"id":"31","name":"CBR_rule1","type":"MARKET_RATE","value":"1.5","actionType":"NOTIFY_BACKOFFICE","priority":"7777","status":"ACTIVE","instrumentIds":["1","2"]}