---
title: "Update response rule action"
method: PATCH
path: "/response/rule"
tags: ["Response Rule"]
---

# Update response rule action

`PATCH /response/rule`

## Request

- Base URL: `/v1` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/v1/response/rule`
- Auth: none declared. Required headers: `X-Auth-Token`
- TypeScript: <https://skmtc.dev/neuvector/apis/neuvector-api/docs/response/rule/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Headers

- `X-Auth-Token` string, required

## Request body

- RESTResponseRuleActionData
  - `insert` RESTResponseRuleInsert
    - `after` integer
    - `rules` RESTResponseRule[], required
      - `id` integer, required
      - `event` string, required
      - `comment` string, required
      - `group` string, required
      - `conditions` RESTCLUSEventCondition[], required
        - `type` string
        - `value` string
      - `actions` string[], required
      - `webhooks` string[], required
      - `disable` boolean, required
      - `cfg_type` string, required

## Response `200`

Success

---

[API](https://skmtc.dev/neuvector/apis/neuvector-api.md) - [All operations](https://skmtc.dev/neuvector/apis/neuvector-api/llms.txt) - [OpenAPI document](https://skmtc.dev/neuvector/apis/neuvector-api/revisions/b8d8d28840b3?raw)
