---
title: "Update Security Rules"
method: PATCH
path: "/security-rules"
tags: ["security_rules"]
---

# Update Security Rules

`PATCH /security-rules`

This endpoint updates the security rules for the current account.
If no security rules exist for the account, they will be automatically created.

## Response `200`

Success.

## Other responses

- `4XX` — Client error.
- `5XX` — Server error.

---

[API](https://skmtc.net/scalr/apis/scalr-iacp-api.md) · [All operations](https://skmtc.net/scalr/apis/scalr-iacp-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/scalr/scalr-iacp-api/revisions/fc927526ad12/schema)
