Risk profiles
The firm's risk profiles, and the asset-class allocations of one risk profile.
List the firm's risk profiles
Returns the firm's risk profiles, ordered by display order and paginated by `limit` and `offset`.
Create a risk profile
Creates a risk profile for the firm with the `name`, `description` and `displayOrder` that the body sends, and returns it. The new risk profile has no asset-class allocations.
Update one risk profile
Changes the fields that the body sends on the firm's risk profile with this `id`, and returns the risk profile. Fields that the body does not send keep their values. When the firm has no risk profile with this `id`, nothing changes, and the response has the status `200` and the body `{}`.
Delete one risk profile
Deletes the firm's risk profile with this `id` and its asset-class allocations, and answers with the body `{ data: { deleted: true } }`. Before the delete, each asset-class allocation of the risk profile is divided in whole percents among the firm's other risk profiles. When the firm has no risk profile with this `id`, no risk profile is deleted, and the response has the status `200` and the body `{ data: { deleted: false } }`.
List the asset-class allocations of one risk profile
Returns the asset-class allocations of the firm's risk profile with this `id`, ordered by asset-class display order and paginated by `limit` and `offset`. When the firm has no risk profile with this `id`, the response has the status `200`, an empty `data` list and a `pagination.totalCount` of 0, as it has for a risk profile with no allocations.