---
title: "Put Cdn Config"
method: PUT
path: "/v1/projects/{project_id}/cdn/config"
tags: ["cdn"]
---

# Put Cdn Config

`PUT /v1/projects/{project_id}/cdn/config`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/projects/{project_id}/cdn/config`
- Auth: none declared

Apply edge/security settings to the project's dedicated Bunny zone
(Admin+). Only provided fields change. Persists a summary for audit.

## Path parameters

- `project_id` string, required

## Request body

- CdnConfigIn: Partial update — only the provided fields are changed.
  - `signed_urls_enabled` boolean, nullable
  - `allowed_referrers` string[], nullable
  - `block_none_referrer` boolean, nullable
  - `blocked_countries` string[], nullable
  - `request_limit` integer, nullable
  - `burst_size` integer, nullable
  - `connection_limit_per_ip` integer, nullable
  - `custom_domain` string, nullable

## Response `200`

Successful Response

- CdnConfigOut
  - `dedicated_zone` boolean, required
  - `zone_id` string, nullable
  - `cdn_hostname` string, nullable
  - `hostnames` string[]
  - `signed_urls_enabled` boolean
  - `zone_security_key` string, nullable
  - `allowed_referrers` string[]
  - `block_none_referrer` boolean
  - `blocked_countries` string[]
  - `request_limit` integer
  - `burst_size` integer
  - `connection_limit_per_ip` integer

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