---
title: "Partially update repository geoip rules."
method: PATCH
path: "/repos/{owner}/{identifier}/geoip"
tags: ["repos"]
---

# Partially update repository geoip rules.

`PATCH /repos/{owner}/{identifier}/geoip`

Partially update repository geoip rules.

## Request body

- RepositoryGeoIpRulesRequestPatch
  - `cidr` RepositoryGeoIpCidr
    - `allow` string[], required — The allowed CIDRs for this repository
    - `deny` string[], required — The denied CIDRs for this repository
  - `country_code` RepositoryGeoIpCountryCode
    - `allow` string[], required — The allowed country codes for this repository
    - `deny` string[], required — The denied country codes for this repository

## Response `200`

OK

- RepositoryGeoIpRules
  - `cidr` RepositoryGeoIpCidr, required
    - `allow` string[], required — The allowed CIDRs for this repository
    - `deny` string[], required — The denied CIDRs for this repository
  - `country_code` RepositoryGeoIpCountryCode, required
    - `allow` string[], required — The allowed country codes for this repository
    - `deny` string[], required — The denied country codes for this repository

## Other responses

- `400` — Request could not be processed (see detail).
- `402` — Geo/IP restrictions are not available; upgrade your account!
- `404` — Owner namespace or repository not found
- `422` — Missing or invalid parameters (see detail).

---

[API](https://skmtc.dev/cloudsmith/apis/cloudsmith-api-v1.md) · [All operations](https://skmtc.dev/cloudsmith/apis/cloudsmith-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cloudsmith/cloudsmith-api-v1/revisions/4d7879df9b2f/schema)
