sites

Set Cache Preload

Changed on

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.

put/sites/{id}/cache-preload

Request

Path parameters

idinteger required

Request body

enabledboolean

Response

Successful Response

messagestring
dataobject

Example response

{
  "message": "Success",
  "data": {
    "enabled": true,
    "state": "pending",
    "urls_preloaded": null,
    "urls_found": null,
    "searching": null,
    "warnings": []
  }
}

Changes