| POST | /api/riskstore/eventset/deal-expected-loss | Get the deals expected losses by metarisk |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| SourceDealSystem | body | string | Yes | The source deal system (IGN) to get the date for |
| AsOf | body | string | No | The as of date to query |
| MetaRiskIds | body | array | Yes | The metarisks to query for |
| PerspectiveIds | body | array | No | The perspectives to query for |
| PerspectiveTypeIds | body | array | No | The perspectives types to query for (0 - Vendor, 10 - Nephila 1.0, 16 - Nephila 2.0 etc...) |
| SourceDealIds | body | array | Yes | The source deal ids to query for |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DealExpectedLosses | form | List<DealExpectedLoss> | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| SourceDealId | form | long | No | |
| PerspectiveId | form | int | No | |
| MetaRiskId | form | int | No | |
| ELAgg | form | decimal | No | |
| ELOcc | form | decimal | No | |
| PAtt | form | decimal | No | |
| PExh | form | decimal | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/riskstore/eventset/deal-expected-loss HTTP/1.1
Host: riskstoreng-dev.nephila.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"sourceDealSystem":"String","asOf":"0001-01-01T00:00:00.0000000Z","metaRiskIds":[0],"perspectiveIds":[0],"perspectiveTypeIds":[0],"sourceDealIds":[0]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"dealExpectedLosses":[{"sourceDealId":0,"perspectiveId":0,"metaRiskId":0,"elAgg":0,"elOcc":0,"pAtt":0,"pExh":0}],"responseStatus":{"__type":"ServiceStack.ResponseStatus, ServiceStack.Interfaces","errorCode":"String","message":"String","stackTrace":"String","errors":[{"__type":"ServiceStack.ResponseError, ServiceStack.Interfaces","errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}