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

CodeMessage
1System is unavailable
100Missing or invalid parameter: [FieldName]
101[FieldName] not found
102name already exists
105Priority [value] already exists
10001Permission 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"]}