cURL
curl --request POST \ --url https://api.bunny.net/pullzone/{pullZoneId}/edgerules/{edgeRuleId}/setEdgeRuleEnabled \ --header 'AccessKey: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "Id": 123, "Value": true } '
{ "ErrorKey": "<string>", "Field": "<string>", "Message": "<string>" }
API Access Key authorization header
The ID of the Pull Zone that contains the Edge Rule
The ID of the Edge Rule that should be updated
The toggle switch model
The Edge Rule was successfuly updated
Was this page helpful?