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
}
'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
}
'API Access Key authorization header
The ID of the storage zone that should be updated
The list of replication zones enabld for the storage zone
The origin URL of the storage zone
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?