Gemini AI Studio icon

Gemini AI Studio

Use the Google Gemini API through direct AI Studio REST calls

Actions16

Cached Content → Update

AI-generated

Summary

Update a Cached Content resource in Google Gemini AI Studio by specifying its resource name and providing the updated content in JSON format, optionally using an update mask to specify which fields to patch.

Inputs

  • Cached Content Name (required) — The resource name of the cached content to update, e.g., 'cachedContents/abc123'.
  • Request Body (JSON) (required) — The JSON object representing the updated cached content data to send in the request body.
  • Update Mask — An optional comma-separated field mask to specify which fields to update in a PATCH request, such as 'ttl,expire_time'.

Output shape

a single JSON object representing the updated Cached Content resource

The node returns the API response as JSON after performing the PATCH operation on the specified Cached Content. Errors during the update are reported as node execution errors unless 'Continue on Fail' is enabled.

Examples

Example 1: Update Cached Content example

Provide the 'Cached Content Name' identifying the cached content to update, supply the updated cached content structure in 'Request Body (JSON)', and optionally specify fields to update in 'Update Mask'. The node performs a PATCH request to update the resource and returns the updated cached content data.

Links

Discussion