---
title: "Update folder quota usage limits"
method: PUT
path: "/quotas/folders/{name}/usage"
tags: ["quota"]
---

# Update folder quota usage limits

`PUT /quotas/folders/{name}/usage`

Sets the current used quota limits for the given folder

## Query parameters

- `mode` 'add' | 'reset' — Update type: * `add` - add the specified quota limits to the current used ones * `reset` - reset the values to the specified ones. This is the default

## Request body

- QuotaUsage
  - `used_quota_size` integer
  - `used_quota_files` integer

## Response `200`

successful operation

- ApiResponse
  - `message` string — message, can be empty
  - `error` string — error description if any

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `500` — Internal Server Error
- `default` — Unexpected Error

---

[API](https://skmtc.net/kanton-bern/apis/sftpgo.md) · [All operations](https://skmtc.net/kanton-bern/apis/sftpgo/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kanton-bern/sftpgo/revisions/d8d616a479b0/schema)
