| All Verbs | /projections/capm/update |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | query | int | No | |
| Description | query | string | No | |
| ExpectedInflationRate | query | double | No | |
| ArrayFormat | query | List<ExpectedRiskReturn> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Name | form | string | No | |
| ExpectedNominalReturn | form | double | No | |
| StandardDeviation | form | double | No | |
| Yield | form | double | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Result | form | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /projections/capm/update HTTP/1.1
Host: api.portfoliolink.co.za
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
id: 0,
description: String,
expectedInflationRate: 0,
arrayFormat:
[
{
name: String,
expectedNominalReturn: 0,
standardDeviation: 0,
yield: 0
}
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
result: False
}