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
}
'
{
  "ErrorKey": "<string>",
  "Field": "<string>",
  "Message": "<string>"
}

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 | null
required

The ID of the Edge Rule that should be updated

Body

application/json

The toggle switch model

Id
integer<int64>
Value
boolean

Response

The Edge Rule was successfuly updated