---
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

---

[API](https://skmtc.net/tencentblueking/apis/weknora-api.md) · [All operations](https://skmtc.net/tencentblueking/apis/weknora-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tencentblueking/weknora-api/revisions/6e297e21afca/schema)
