---
title: "enable/disable customized rule"
method: PUT
path: "/open/policy/switch"
tags: ["rule"]
---

# enable/disable customized rule

`PUT /open/policy/switch`

## Request body

- PolicyPutPolicySwitchReq
  - `id` integer
  - `is_enabled` boolean

## Response `200`

OK

- ResponseJSONBody
  - `data` unknown
  - `err` string
  - `msg` string

## Changes

- **2026-04-03** `2d20e20d0f6e` — 2 info
  - api tag `rule` added
  - api tag `customized_rules` removed
- **2026-04-01** `de6007edcff9` — 2 info
  - api tag `customized_rules` added
  - api tag `rule` removed

[Change history](https://skmtc.dev/chaitin/apis/mgt-api/changes/open/policy/switch/put.md)

---

[API](https://skmtc.dev/chaitin/apis/mgt-api.md) · [All operations](https://skmtc.dev/chaitin/apis/mgt-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chaitin/mgt-api/revisions/8ff8cf839cf1/schema)
