---
title: "Enable/Disable RGW Account/Bucket quota"
method: PUT
path: "/api/rgw/accounts/{account_id}/quota/status"
tags: ["RgwUserAccounts"]
---

# Enable/Disable RGW Account/Bucket quota

`PUT /api/rgw/accounts/{account_id}/quota/status`

## Request

- Base URL: `/` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/rgw/accounts/{account_id}/quota/status`
- Auth: HTTP bearer

Enable/Disable quota

        :param account_id: Account identifier
        :param quota_type: 'account' or 'bucket'
        :param quota_status: 'enable' or 'disable'
        :return: Returns modified quota.
        :rtype: Dict[str, Any]

## Path parameters

- `account_id` string, required

## Request body

- object
  - `quota_status` string, required: Quota status
  - `quota_type` string, required: Quota type

## Response `200`

Resource updated.

- object

## Other responses

- `202`: Operation is still executing. Please check the task queue.
- `400`: Operation exception. Please check the response body for details.
- `401`: Unauthenticated access. Please login first.
- `403`: Unauthorized access. Please check your permissions.
- `500`: Unexpected error. Please check the response body for the stack trace.

---

[API](https://skmtc.dev/ceph/apis/ceph-rest-api.md) - [All operations](https://skmtc.dev/ceph/apis/ceph-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ceph/apis/ceph-rest-api/revisions/56cc950e3e37?raw)
