---
title: "更新项目规则模板"
method: PATCH
path: "/v1/projects/{project_name}/rule_templates/{rule_template_name}/"
tags: ["rule_template"]
---

# 更新项目规则模板

`PATCH /v1/projects/{project_name}/rule_templates/{rule_template_name}/`

update rule template in project

## Path parameters

- `project_name` string, required
- `rule_template_name` string, required

## Request body

- V1UpdateProjectRuleTemplateReqV1
  - `desc` string
  - `rule_list` V1RuleReqV1[]
    - `is_custom_rule` boolean
    - `level` string
    - `name` string
    - `params` V1RuleParamReqV1[]
      - `key` string
      - `value` 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)
