Skip to main content
POST
/
storagezone
/
{id}
Update Storage Zone
curl --request POST \
  --url https://api.bunny.net/storagezone/{id} \
  --header 'AccessKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ReplicationZones": [
    "<string>"
  ],
  "OriginUrl": "<string>",
  "Custom404FilePath": "<string>",
  "Rewrite404To200": true
}
'

Authorizations

AccessKey
string
header
required

API Access Key authorization header

Path Parameters

id
integer<int64>
required

The ID of the storage zone that should be updated

Body

ReplicationZones
string[] | null

The list of replication zones enabld for the storage zone

OriginUrl
string | null

The origin URL of the storage zone

Custom404FilePath
string | null

The path to the custom file that will be returned in a case of 404

Rewrite404To200
boolean | null

Rewrite 404 status code to 200 for URLs without extension

Response

The storage zone was successfuly updated