Version 2.1.1792967583 · latest Download OpenAPI Markdown

Purge and prefetch

Purge cached URLs or directories, and prefetch given URLs.

cache-jobsCacheAuthentication: User (some parameters admin only)3 endpoints

List purge/prefetch jobs

GET/api/v2/cache-jobs
Authentication: User (some parameters admin only)

Query parameters

FieldTypeRequiredDescription
pageinteger— Page number, starting from 1
Default 1
page_sizeinteger— Items per page
Default 20
sortstring— Sort fields, comma-separated; prefix `-` for descending, e.g. `-created_at,id`
tenant_idinteger— Admin only: filter by tenant. Ignored for tenant credentials, which only see their own tenant's data
typestring— Only list jobs of this type.
Values ["purge_url","purge_dir","prefetch"]
urlstring— If it starts with http:// or https://, exact match on the full URL, normalized as on submission (the job's URL list contains it); otherwise exact match on the host name.

Create purge/prefetch job

POST/api/v2/cache-jobs
Authentication: User (some parameters admin only)

Request body application/json

FieldTypeRequiredDescription
typestringRequired purge_url = purge URLs; purge_dir = purge directories (URL ends with /); prefetch = prefetch.
Values ["purge_url","purge_dir","prefetch"]
urlsstring[]Required http(s)://host/path (normalized, see create); at most 100 entries per prefetch.

Get purge/prefetch job

GET/api/v2/cache-jobs/{id}
Authentication: User (some parameters admin only)

Purge and prefetch object

FieldTypeRequiredDescription
created_atstring— Created at
read-only
idinteger— Record ID
read-only
resultsCacheJobNodeResult[]— Execution result of each node (returned in details only).
read-only
site_idinteger— Site ID
read-only
statusstring— Status of the push task (if some nodes fail it stays pending and retries with backoff, then becomes failed when retries run out).
read-onlyValues ["pending","running","done","failed"]
tenant_idinteger— Owner tenant (user) ID
read-only
typestring— purge_url = purge URLs; purge_dir = purge directories (URL ends with /); prefetch = prefetch.
Values ["purge_url","purge_dir","prefetch"]
updated_atstring— Updated at
read-only
urlsstring[]— http(s)://host/path (normalized, see create); at most 100 entries per prefetch.