Update a model
PUT/v1/models/models/:id
Replaces the model with the given ID with the one in the request body. Send every field: primary securities, security groups, sleeves and security restrictions that you leave out of their arrays are removed from the model. Other fields in the body, such as id, are ignored. If your firm has no model with that ID, the response is 404.
Make the weights of the primary securities, security groups and sleeves add up to 100. The API does not check the total. If your firm has no benchmark, security group or sleeve with an ID in the request body, the response is 404 and nothing is saved.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 429
The updated model.
id is not a whole number, or the request body is invalid, for example name is missing.
The access token is missing, invalid, or expired.
The access token does not have the write:model scope.
Your firm has no model with the ID in the path, or no benchmark, security group or sleeve with an ID in the request body.
Too many requests. Wait the number of seconds in the Retry-After-per-person header (script-audience tokens) or the Retry-After header (other requests) before you retry. See Rate limit.