---
title: "Update an IP access control rule"
method: PATCH
path: "/ip-access-control/{id}"
tags: ["IP Access Control"]
---

# Update an IP access control rule

`PATCH /ip-access-control/{id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/ip-access-control/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` integer, required

## Request body

- UpdateIpAccessControlRequest: Request to update an IP access control rule
  - `acknowledge_lockout` boolean: Required when the resulting block rule matches the address this request came from.
  - `action` string, nullable: Optional new action
  - `confirm_broad_range` boolean: Required when the resulting block rule is broader than /8 (IPv4) or /16 (IPv6).
  - `ip_address` string, nullable: Optional new IP address
  - `reason` string, nullable: Optional new reason

## Response `200`

IP access control rule updated

- IpAccessControlResponse: Response model for IP access control rules
  - `action` string, required
  - `created_at` string, required
  - `created_by` integer, nullable
  - `id` integer, required
  - `ip_address` string, required
  - `reason` string, nullable
  - `updated_at` string, required

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: IP access control rule not found
- `409`: A block range broader than /8 (IPv4) or /16 (IPv6) without confirm_broad_range, or a block rule that matches the caller's own address without acknowledge_lockout
- `500`: Internal server error

## Changes

- **2026-11-15** `c5965797b8b1`: 3 info
  - added the new optional request property `acknowledge_lockout`
  - added the new optional request property `confirm_broad_range`
  - added the non-success response with the status `409`
- **2026-11-15** `4e654843cab2`: 2 warning, 1 info
  - removed the request property `acknowledge_lockout`
  - removed the request property `confirm_broad_range`
  - removed the non-success response with the status `409`
- **2026-11-15** `7b49a82605a5`: 3 info
  - added the new optional request property `acknowledge_lockout`
  - added the new optional request property `confirm_broad_range`
  - added the non-success response with the status `409`
- **2026-11-09** `12896146b193`: 5 breaking
  - removed the required property `extensions` from the response with the `400` status
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `404` status
  - …1 more
- **2026-10-05** `4b228ebed583`: 5 info
  - added the optional property `status` to the response with the `400` status
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `404` status
  - …1 more

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/ip-access-control/:id/patch.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
