> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vecurity.net/llms.txt
> Use this file to discover all available pages before exploring further.

# [POST] Update Cache Mode

> Update cache mode

<Info>
  **Prerequisite:**&#x20;

  Please ensure you have read the VISE Overview before proceeding as the API endpoint is based on your VISE url which is dynamic.

  Where vise-url is mentioned, we are referring to your actual VISE domain, not 'vise-url'. Explained in the VISE overview.
</Info>

<Warning>
  All requests to the Vecurity VISE API requires Session creation in tandem with your Vecurity API token in order to make use of the API Endpoints. More details can be found the [VISE Authentication](/api-reference/endpoint/vecurity-vise/vise-authentication) page.

  If you require support here, please get in touch with our Live chat or [support@vecurity.net](mailto:support@vecurity.net)
</Warning>

#### HTTP Endpoint `POST`

```
https://{VISE-URL}/api/update_cache_mode
```

#### Request Body Parameters

```json theme={null}
{
  "domain_id": "string (required) - Domain ID in MD5 UUID form",
  "record_id": "string (required) - Record ID",
  "cache_mode": "string (required) - One of [ASSETS, EVERYTHING, NOTHING]"
}
```

#### Endpoint Description

Updates the cache mode for a specific record. Available modes:

* ASSETS: Cache only static assets
* EVERYTHING: Cache all content
* NOTHING: Disable caching

#### Response Example

<CodeGroup>
  ```json 200 theme={null}
  {
    "status": 200,
    "message": "Cache mode updated successfully",
    "data": {}
  }
  ```

  ```json 400 theme={null}
  {
    "status": 400,
    "message": "Invalid request parameters"
  }
  ```

  ```json 401 theme={null}
  {
    "status": 401,
    "message": "Authentication required"
  }
  ```
</CodeGroup>
