rule_template

更新自定义规则

update custom rule

patch/v1/custom_rules/{rule_id}

Request

  • Base URL
    /sqle (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /sqle/v1/custom_rules/{rule_id}
  • Auth
    API key in header Authorization

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

codeinteger
messagestring

Example response

{
  "message": "ok"
}

Changes

No recorded changes to this operation across all 75 revisions of this API.