---
title: "POST /projects/{project}/global/urlMaps/{urlMap}/invalidateCache"
method: POST
path: "/projects/{project}/global/urlMaps/{urlMap}/invalidateCache"
tags: ["urlMaps"]
---

# POST /projects/{project}/global/urlMaps/{urlMap}/invalidateCache

`POST /projects/{project}/global/urlMaps/{urlMap}/invalidateCache`

Initiates a cache invalidation operation, invalidating the specified path,
scoped to the specified UrlMap.

For more information, see [Invalidating cached
content](/cdn/docs/invalidating-cached-content).

## Path parameters

- `project` string, required
- `urlMap` string, required

## Query parameters

- `requestId` string

## Request body

- CacheInvalidationRule
  - `path` string
  - `host` string — If set, this invalidation rule will only apply to requests with a Host header matching host.
  - `cacheTags` string[] — A list of cache tags used to identify cached objects. - Cache tags are specified when the response is first cached, by setting the `Cache-Tag` response header at the origin. - Multiple cache tags in the same invalidation request are treated as Boolean `OR` - for example, `tag1 OR tag2 OR tag3`. - If other fields are also specified, these are treated as Boolean `AND` with any tags. Up to 10 tags can be specified in a single invalidation request.

## 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/revisions/6120ed8969d4/schema)
