Assign a model to accounts
PUT/v1/accounts/model
Assigns the model in modelId to each account whose ID is a key of accounts, and returns each account it assigned. Every key is assigned, whatever its value. A key that is not the ID of one of your firm's accounts is skipped, and the response leaves it out. A modelId that is not the ID of one of your firm's models answers 404 and changes no account.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 429
Each account the request assigned.
The request body is invalid, for example modelId is not a whole number, or a key of accounts is not a whole number of at least 1 or its value is not true or false.
The access token is missing, invalid, or expired.
The access token does not have the write:household scope.
Your firm has no model with the ID in modelId.
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.