---
title: "Set Cdn Overage Mode"
method: PATCH
path: "/v1/orgs/{org_id}/cdn-overage-mode"
tags: ["organizations"]
---

# Set Cdn Overage Mode

`PATCH /v1/orgs/{org_id}/cdn-overage-mode`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/orgs/{org_id}/cdn-overage-mode`
- Auth: none declared

Set the org's CDN overage mode (owner/admin only). Switching to
`hard_cap` opts into blocking new writes when storage is over the included
quota; `pay_as_you_go` reverts to metered overage.

## Path parameters

- `org_id` string, required

## Request body

- CdnOverageModeIn
  - `mode` 'pay_as_you_go' | 'hard_cap', required

## Response `200`

Successful Response

- CdnOverageModeOut
  - `org_uuid` string, required
  - `mode` 'pay_as_you_go' | 'hard_cap', required
  - `available` string[]

## Other responses

- `422`: Validation Error

---

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