---
title: "UpdateMappingSecurityRule"
method: PUT
path: "/v1/vhost/mapping/security-rule/"
tags: ["vhosts"]
---

# UpdateMappingSecurityRule

`PUT /v1/vhost/mapping/security-rule/`

Update a mapping security rule.

## Request body

- DtoUpdateMappingSecurityRule
  - `allowedIps` string[]
  - `bandwidthBpsLimitPerConnection` integer
  - `bandwidthLimitOnlyAfterBytes` integer
  - `blockedIps` string[]
  - `description` string
  - `id` integer
  - `maxConnectionsPerIp` integer
  - `name` string
  - `responseCodeOnMaxConnections` integer
  - `responseCodeOnMaxRequests` integer
  - `rpsHardLimitPerIp` integer
  - `rpsSoftLimitPerIp` integer

## Response `200`

MappingSecurityRuleUpdated

- object

---

[API](https://skmtc.net/goinfinite/apis/osapi.md) · [All operations](https://skmtc.net/goinfinite/apis/osapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/goinfinite/osapi/versions/7320a5d8ef9e/schema)
