Update a sleeve
PUT/v1/models/sleeves/:id
Replaces the sleeve with the given ID with the one in the request body. Send every field: primary securities and security groups that you leave out of their arrays are removed from the sleeve. Other fields in the body, such as id, are ignored. If your firm has no sleeve with that ID, the response is 404.
Make the weights of the primary securities and security groups add up to 100. The API does not check the total. Send each security group ID once. If your firm has no security group 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 sleeve.
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 sleeve with the ID in the path, or no security group 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.