---
title: "POST /v1/projects/{projectsId}/keys/{keysId}:addIpOverride"
method: POST
path: "/v1/projects/{projectsId}/keys/{keysId}:addIpOverride"
tags: ["projects"]
---

# POST /v1/projects/{projectsId}/keys/{keysId}:addIpOverride

`POST /v1/projects/{projectsId}/keys/{keysId}:addIpOverride`

## Request

- Base URL: `https://recaptchaenterprise.googleapis.com`
- URL: `https://recaptchaenterprise.googleapis.com/v1/projects/{projectsId}/keys/{keysId}:addIpOverride`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Adds an IP override to a key. The following restrictions hold: * The maximum number of IP overrides per key is 1000. * For any conflict (such as IP already exists or IP part of an existing IP range), an error is returned.

## Path parameters

- `projectsId` string, required
- `keysId` string, required

## Request body

- GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest: The AddIpOverride request message.
  - `ipOverrideData` GoogleCloudRecaptchaenterpriseV1IpOverrideData: Information about the IP or IP range override.
    - `ip` string: Required. The IP address to override (can be IPv4, IPv6 or CIDR). The IP override must be a valid IPv4 or IPv6 address, or a CIDR range. The IP override must be a public IP address. Example of IPv4: 168.192.5.6 Example of IPv6: 2001:0000:130F:0000:0000:09C0:876A:130B Example of IPv4 with CIDR: 168.192.5.0/24 Example of IPv6 with CIDR: 2001:0DB8:1234::/48
    - `overrideType` 'OVERRIDE_TYPE_UNSPECIFIED' | 'ALLOW': Required. Describes the type of IP override.

## Response `200`

Successful response

- GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse: Response for AddIpOverride.

---

[API](https://skmtc.dev/google/apis/recaptchaenterprise.md) - [All operations](https://skmtc.dev/google/apis/recaptchaenterprise/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/recaptchaenterprise/revisions/26f34c638048?raw)
