---
title: "更新自定义规则"
method: PATCH
path: "/v1/custom_rules/{rule_id}"
tags: ["rule_template"]
---

# 更新自定义规则

`PATCH /v1/custom_rules/{rule_id}`

update custom rule

## Path parameters

- `rule_id` string, required

## Request body

- V1UpdateCustomRuleReqV1
  - `annotation` string
  - `desc` string
  - `level` 'normal' | 'notice' | 'warn' | 'error'
  - `rule_script` string
  - `tags` string[]
  - `type` string

## Response `200`

OK

---

[API](https://skmtc.net/actiontech/apis/sqle-api-docs.md) · [All operations](https://skmtc.net/actiontech/apis/sqle-api-docs/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/actiontech/sqle-api-docs/versions/704d73f5c092/schema)
