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>",
  "OriginDnsZoneId": 123,
  "OriginDnsRecordId": 123,
  "WordPressCronToken": "<string>",
  "WordPressCronPath": "<string>",
  "WordPressPath": "<string>",
  "Custom404FilePath": "<string>",
  "Rewrite404To200": true
}
'
{
  "ErrorKey": "<string>",
  "Field": "<string>",
  "Message": "<string>"
}

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

application/json

The configuration that should be applied to the storage zone

ReplicationZones
string[] | null

The list of replication zones enabld for the storage zone

OriginUrl
string | null

The origin URL of the storage zone

OriginDnsZoneId
integer<int64> | null

The origin DNS Zone ID

OriginDnsRecordId
integer<int64> | null

The origin DNS Record ID

WordPressCronToken
string | null

The WordPress cron token that will be used to authenticate offloading requests

WordPressCronPath
string | null

The WordPress path where cron jobs should be getting called

WordPressPath
string | null

The WordPress path where WordPress is installed on the origin

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