Update investment profile risk level
Updates the risk level of a client's investment profile.
PUT
/v1/broker/investment-profile/update/risk-levelRequest
Headers
| Field | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Access token in Bearer ACCESS_TOKEN format |
Content-Type | string | Yes | Must be application/json |
Not applicable: Path Parameters, Query Parameters.
Body
| Field | Type | Required | Description |
|---|---|---|---|
account_id | integer | Yes | Account identifier. |
risk_level | string | Yes | New risk level to assign to the client. Possible values: LOW, MEDIUM, HIGH. |
Response
2XX Success
| Field | Type | Description |
|---|---|---|
account_id | integer | Account identifier. |
risk_level | string | Updated risk level. Possible values: LOW, MEDIUM, HIGH. |
Error Codes
| Status | Description |
|---|---|
400 | Bad Request — invalid or missing parameters |
401 | Unauthorized — invalid or missing access token |
403 | Forbidden — the token does not have permission to access this resource |
404 | Not Found — the account does not exist |
500 | Internal Server Error |
Error structure:
{
"code": "NOT_FOUND",
"description": "Resource not found"
}
Code Example
- cURL
- JavaScript
- Python
- Node.js
curl -X PUT https://b2b.allaria.cloud/v1/broker/investment-profile/update/risk-level \
-H "Authorization: Bearer ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"account_id": 12345,
"risk_level": "HIGH"
}'
const response = await fetch(
'https://b2b.allaria.cloud/v1/broker/investment-profile/update/risk-level',
{
method: 'PUT',
headers: {
'Authorization': 'Bearer ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
account_id: 12345,
risk_level: 'HIGH'
})
}
);
const data = await response.json();
console.log(data);
import requests
response = requests.put(
'https://b2b.allaria.cloud/v1/broker/investment-profile/update/risk-level',
headers={
'Authorization': 'Bearer ACCESS_TOKEN',
'Content-Type': 'application/json'
},
json={
'account_id': 12345,
'risk_level': 'HIGH'
}
)
data = response.json()
print(data)
const axios = require('axios');
const response = await axios.put(
'https://b2b.allaria.cloud/v1/broker/investment-profile/update/risk-level',
{
account_id: 12345,
risk_level: 'HIGH'
},
{
headers: {
Authorization: 'Bearer ACCESS_TOKEN',
'Content-Type': 'application/json'
}
}
);
console.log(response.data);
2XX Success
{
"account_id": 12345,
"risk_level": "HIGH"
}