---
title: "Apply the default storage quota to every existing workspace"
method: POST
path: "/system/admin/tenants/apply-default-storage-quota"
tags: ["System Admin"]
---

# Apply the default storage quota to every existing workspace

`POST /system/admin/tenants/apply-default-storage-quota`

Reads the current value of `tenant.default_storage_quota_gb`
(3-tier resolver: DB > ENV > default) and writes that many
GiB into storage_quota for every row in tenants. Bypasses
the per-workspace PUT whitelist, which forbids storage_quota
edits by Owners. SystemAdmin only.
Idempotent — running twice with the same setting is a no-op.

## Response `200`

{ affected: int64, quota_bytes: int64 }

- object

## Other responses

- `500` — DB write failed

## Changes

- **2026-06-05** `e7c0c953963b` — 1 info
  - endpoint added
- **2025-12-16** `edf61e68559d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/system/admin/tenants/apply-default-storage-quota/post.md)

---

[API](https://skmtc.dev/tencentblueking/apis/weknora-api.md) · [All operations](https://skmtc.dev/tencentblueking/apis/weknora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tencentblueking/apis/weknora-api/revisions/c6545df0245a?raw)
