Skip to main content
POST
/
pullzone
/
{pullZoneId}
/
edgerules
/
{edgeRuleId}
/
setEdgeRuleEnabled
Set Edge Rule Enabled
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
}
'

Authorizations

AccessKey
string
header
required

API Access Key authorization header

Path Parameters

pullZoneId
integer<int64>
required

The ID of the Pull Zone that contains the Edge Rule

edgeRuleId
string
required

The ID of the Edge Rule that should be updated

Body

ToggleRequestModel is used for toggle switches and contains an ID and on/off value

Id
integer<int64>
required
Value
boolean
required

Response

The Edge Rule was successfuly updated