v51

latestSwagger 2.0raw.githubusercontent.com2026-08-01290564855.4 KB
rule_template

更新自定义规则

update custom rule

patch/v1/custom_rules/{rule_id}

Path parameters

rule_idstring required

rule id

Request body

annotationstring
descstring
level'normal' | 'notice' | 'warn' | 'error'
rule_scriptstring
tagsstring[]
typestring

Example request

{
  "annotation": "this is test rule",
  "desc": "this is test rule",
  "level": "notice",
  "type": "DDL规则"
}

Response

OK