---
title: "Update SecurityRule"
method: PATCH
path: "/security-rules/{id}"
tags: ["SecurityRule"]
---

# Update SecurityRule

`PATCH /security-rules/{id}`

Update by json config

## Path parameters

- `id` string, required

## Request body

- TypesUpdateSecurityRuleRequest
  - `bio` string
  - `domain` string
  - `name` string
  - `proxy_domain` string

## Response `200`

OK

- ModelSecurityRule
  - `bio` string
  - `created_at` string
  - `domain` string
  - `id` integer
  - `name` string
  - `proxy_domain` string
  - `security_groups` ModelSecurityGroup[]
    - `bio` string
    - `created_at` string
    - `id` integer
    - `name` string
    - `security_rules` ModelSecurityRule[]
    - `updated_at` string
  - `updated_at` string

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2021-11-29** `f61cd344dca7` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/dragonflyoss/apis/dragonfly-manager/changes/security-rules/:id/patch.md)

---

[API](https://skmtc.dev/dragonflyoss/apis/dragonfly-manager.md) · [All operations](https://skmtc.dev/dragonflyoss/apis/dragonfly-manager/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dragonflyoss/dragonfly-manager/revisions/f61cd344dca7/schema)
