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>"
}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>"
}API Access Key authorization header
The ID of the storage zone that should be updated
The configuration that should be applied to the storage zone
The list of replication zones enabld for the storage zone
The origin URL of the storage zone
The origin DNS Zone ID
The origin DNS Record ID
The WordPress cron token that will be used to authenticate offloading requests
The WordPress path where cron jobs should be getting called
The WordPress path where WordPress is installed on the origin
The path to the custom file that will be returned in a case of 404
Rewrite 404 status code to 200 for URLs without extension
The storage zone was successfuly updated
Was this page helpful?