---
title: "POST /projects/{project}/regions/{region}/routers/{router}/patchNamedSet"
method: POST
path: "/projects/{project}/regions/{region}/routers/{router}/patchNamedSet"
tags: ["routers"]
---

# POST /projects/{project}/regions/{region}/routers/{router}/patchNamedSet

`POST /projects/{project}/regions/{region}/routers/{router}/patchNamedSet`

Patches Named Set

## Path parameters

- `project` string, required
- `region` string, required
- `router` string, required

## Query parameters

- `requestId` string

## Request body

- NamedSet
  - `type` 'NAMED_SET_TYPE_COMMUNITY' | 'NAMED_SET_TYPE_PREFIX' — This named set's type
  - `fingerprint` string, byte — A fingerprint for the Named Set being applied to this Router, which is essentially a hash of the Named Set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update the Named Set. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make a getNamedSet() request to retrieve a Named Set.
  - `name` string — This set's name, which must be a resource ID segment and unique within all named sets owned by the Router. Name should conform to RFC1035.
  - `description` string — An optional description of named set.
  - `elements` Expr[] — CEL expressions that are comparable to constructs of this set's type (see Policy Language).
    - `description` string — Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
    - `expression` string — Textual representation of an expression in Common Expression Language syntax.
    - `title` string — Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
    - `location` string — Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/compute.md) · [All operations](https://skmtc.net/google/apis/compute/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/compute/versions/6120ed8969d4/schema)
