---
title: "Set Edge Rule Enabled"
method: POST
path: "/pullzone/{pullZoneId}/edgerules/{edgeRuleId}/setEdgeRuleEnabled"
tags: ["Pull Zone"]
---

# Set Edge Rule Enabled

`POST /pullzone/{pullZoneId}/edgerules/{edgeRuleId}/setEdgeRuleEnabled`

## Path parameters

- `pullZoneId` integer, required
- `edgeRuleId` string, nullable, required

## Request body

- ToggleRequestModel
  - `Id` integer
  - `Value` boolean

## Response `204`

The Edge Rule was successfuly updated

## Other responses

- `400` — Failed configuring the Edge Rule. Model validation failed
- `401` — The request authorization failed
- `404` — The Pull Zone or Edge Rule with the requested ID does not exist.
- `500` — Internal Server Error

---

[API](https://skmtc.net/bunny/apis/bunny-net-cdn-logging.md) · [All operations](https://skmtc.net/bunny/apis/bunny-net-cdn-logging/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bunny/bunny-net-cdn-logging/versions/9e622620664b/schema)
