---
title: "Update an IP allowlist rule"
method: PATCH
path: "/v1/ip-allowlist/{ip_allowlist_rule_id}"
tags: ["IP Allowlist"]
---

# Update an IP allowlist rule

`PATCH /v1/ip-allowlist/{ip_allowlist_rule_id}`

Update the tag or the IP ranges of an existing IP allowlist rule.

## Path parameters

- `ip_allowlist_rule_id` string, uuid, required

## Request body

- object
  - `tag` string — A new tag
  - `ip_ranges` string[] — The IP addresses (individual IPs or CIDR notation) to include in the IP allowlist rule

## Response `200`

The IP allowlist rule was updated successfully.

- object
  - `id` string, uuid
  - `tag` string — Tag for the IP allowlist rule
  - `created_at` string, date-time — Creation date of the IP allowlist rule
  - `ip_ranges` string[] — The IP addresses (individual IPs or CIDR notation) included in the IP allowlist rule

## Other responses

- `400` — Invalid data
- `401` — Invalid API key
- `503` — API under maintenance

---

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