---
title: "Update cached content (Gemini format)"
method: PATCH
path: "/genai/v1beta/cachedContents/{cached_id}"
tags: ["GenAI Integration"]
---

# Update cached content (Gemini format)

`PATCH /genai/v1beta/cachedContents/{cached_id}`

Updates the TTL or expiration time of a cached content entry. Only
`ttl` or `expireTime` may be modified.

## Path parameters

- `cached_id` string, required

## Headers

- `x-model-provider` string

## Request body

- object
  - `ttl` string — TTL in protobuf duration format.
  - `expireTime` string, date-time

## Response `200`

Successful response

- object

## Other responses

- `400` — Bad request

---

[API](https://skmtc.net/getbifrost/apis/bifrost-api.md) · [All operations](https://skmtc.net/getbifrost/apis/bifrost-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbifrost/bifrost-api/versions/f8cab88f64ea/schema)
