---
title: "Set Cache Preload"
method: PUT
path: "/sites/{id}/cache-preload"
tags: ["sites"]
---

# Set Cache Preload

`PUT /sites/{id}/cache-preload`

## Request

- Base URL: `https://my.pressable.com/v1`
- URL: `https://my.pressable.com/v1/sites/{id}/cache-preload`
- Auth: none declared
- TypeScript: <https://skmtc.dev/pressable/apis/pressable-api-documentation-v1/docs/sites/:id/cache-preload/put.ts> (a function with typed inputs; its response is checked against the schema)

Turn Cache Preload on or off for a site. Send enabled to say which state you want the site left in; it is required, and a request without it is refused rather than reversing the current state. A request for the state the site is already in changes nothing and records no activity, so it is safe to repeat. The response carries the same status as GET /sites/{id}/cache-preload.

## Path parameters

- `id` integer, required

## Request body

- object
  - `enabled` boolean

## Response `200`

Successful Response

- object
  - `message` string
  - `data` object

## Changes

- **2026-11-07** `267a95219f47`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pressable/apis/pressable-api-documentation-v1/changes/sites/:id/cache-preload/put.md)

---

[API](https://skmtc.dev/pressable/apis/pressable-api-documentation-v1.md) - [All operations](https://skmtc.dev/pressable/apis/pressable-api-documentation-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/pressable/apis/pressable-api-documentation-v1/revisions/267a95219f47?raw)
