API referenceSections

Apply the customer's disk quota on its server now (FSRM, or the panel when FSRM cannot be used) and judge it

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

POST /api/v1/tenants/{tid}/customers/{cid}/quota/apply

Apply the customer's disk quota on its server now (FSRM, or the panel when FSRM cannot be used) and judge it

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
cidpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Responses

200 Applied

Content type: application/json

  • tenant_id string required
  • disk_policy string required
    Allowed values: "block" "notify" "suspend"
  • bandwidth_policy string required
    Allowed values: "notify" "suspend"
  • grace_days integer required
  • disk_bytes integer (int64) required
  • disk_limit_bytes integer (int64) required
  • traffic_bytes integer (int64) required
  • traffic_limit_bytes integer (int64) required
  • measured_at string (date-time) | null required
  • thresholds array<integer> required
  • states array<QuotaState> required
    • resource string required

      disk, bandwidth, or page (the suspension page)

    • percent integer required
    • level integer required

      Highest threshold reached: 0, 80, 95 or 100

    • over_since string (date-time) | null required
    • enforcement string required

      disk: fsrm_hard, fsrm_soft, panel (FSRM not usable), none; page: on, on-no-rewrite, off, failed

    • detail string required
    • applied_at string (date-time) | null required
    • updated_at string (date-time) required
  • notices array<QuotaNotice> required
    • resource string required
    • period string required

      YYYY-MM

    • level integer required

      80, 95, 100; 0 is the suspension notice

    • sent_at string (date-time) required
    • recipients string required
    • status string required

      sent, superseded, smtp_not_configured, no_recipient, failed: ...

  • suspend_cause string required
Example
{
  "tenant_id": "string",
  "disk_policy": "block",
  "bandwidth_policy": "notify",
  "grace_days": 0,
  "disk_bytes": 0,
  "disk_limit_bytes": 0,
  "traffic_bytes": 0,
  "traffic_limit_bytes": 0,
  "measured_at": "2026-01-01T00:00:00Z",
  "thresholds": [
    0
  ],
  "states": [
    {
      "resource": "string",
      "percent": 0,
      "level": 0,
      "over_since": "2026-01-01T00:00:00Z",
      "enforcement": "string",
      "detail": "string",
      "applied_at": "2026-01-01T00:00:00Z",
      "updated_at": "2026-01-01T00:00:00Z"
    }
  ],
  "notices": [
    {
      "resource": "string",
      "period": "string",
      "level": 0,
      "sent_at": "2026-01-01T00:00:00Z",
      "recipients": "string",
      "status": "string"
    }
  ],
  "suspend_cause": "string"
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required