Skip to main content
Skip table of contents

Assign a quota profile to multiple accounts

Request

To assign a quota profile to multiple accounts, send a PUT request to:

https://<host>:<port>/adm/v1/accounts?filter=<filter>

Headers

  • Content-Type: application/json

Mandatory arguments

  • filter – filter to specify which accounts the quota profile is to be applied to. This is a JSON object containing one or more key/value pairs, separated by commas. You can use any account field in the filter expression (as returned by GET accounts – see the ADM API documentation).

Other arguments

  • npvrProfileName – the name of the quota profile to be applied to the accounts

Example

A PUT request to the following URL with the payload below applies the quota profile called LARGE to all accounts that have both a status of ACTIVE and the account profile called DEFAULT.

URL

https://<host>:<port>/adm/v1/accounts?filter={"status": "ACTIVE","accountProfileId":"DEFAULT"}

Payload

CODE
{
  "npvrProfileName": "LARGE"
}

Response

A successful request returns an HTTP 200 status.

For example: 

CODE
{
  "matchedCount": 19227,
  "modifiedCount": 19227
}

A bad request returns an HTTP 400 status.

An unauthorised request returns an HTTP 401 status.

A forbidden request returns an HTTP 403 status.

If the account cannot be found, the request returns an HTTP 404 status.

See also

For full details of this API, see the ADM API documentation.

.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.