**Full name**: projects.locations.cachedContents.create

Creates cached content, this call will initialize the cached content in the data storage, and users need to pay for the cache data storage.

### Endpoint

post `https://{service-endpoint}/v1/{parent}/cachedContents`   
Where `{service-endpoint}` is one of the [supported service endpoints](https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest#rest_endpoints).

### Path parameters

`parent` `string` Required. The parent resource where the cached content will be created

### Request body

The request body contains an instance of `https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/projects.locations.cachedContents#CachedContent`.

### Response body

If successful, the response body contains a newly created instance of `https://docs.cloud.google.com/gemini-enterprise-agent-platform/reference/rest/v1/projects.locations.cachedContents#CachedContent`.

### IAM Permissions

Requires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:

- `aiplatform.cachedContents.create`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).