Skip to content

Creates a cache-clear resource.

POST
/api/zones/{zoneId}/cache/clear

Creates a cache-clear resource.

Authorizations

ApiToken

Long-lived API token created via POST /api/api-tokens (returned once in plaintext).

Type
API Key (header: X-API-TOKEN)
or
JWT

JWT access token obtained via POST /api/auth/login. Send as: Authorization: Bearer .

Type
HTTP (bearer)

Parameters

Path Parameters

zoneId*

Zone identifier

Type
string
Required

Request Body

JSON
{
  
"action": "string",
  
"tags": [
  
],
  
"uri": "string",
  
"hostname": "string"
}

Responses

cache-clear resource created

JSON
{
  
"@context": "string",
  
"@id": "string",
  
"@type": "string",
  
"action": "string",
  
"cacheCleared": false,
  
"cdnCleared": false
}

Playground

Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI