Method: cachedContents.patch

Updates CachedContent resource (only expiration is updatable).

HTTP request

PATCH https://generativelanguage.googleapis.com/v1beta/{cachedContent.name=cachedContents/*}

Path parameters

Parameters
cachedContent.name

string

Optional. Identifier. The resource name referring to the cached content. Format: cachedContents/{id}

Query parameters

Parameters
updateMask

string (FieldMask format)

The list of fields to update.

This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

Request body

The request body contains an instance of CachedContent.

Response body

If successful, the response body contains an instance of CachedContent.