Version 2.1.1792967583 · latest Download OpenAPI Markdown

Cache policy

Sets the tenant's default cache group and can reset all sites to follow it.

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

Cache policy

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

Query parameters

FieldTypeRequiredDescription
tenant_idinteger— Admin only: filter by tenant. Ignored for tenant credentials, which only see their own tenant's data

Set the tenant's default group

PUT/api/v2/cache-policy
Authentication: User (some parameters admin only)

Request body application/json

FieldTypeRequiredDescription
default_group_idintegerRequired Platform default group; null = no group yet.

Reset all sites to the default group

POST/api/v2/cache-policy/reset-sites
Authentication: User (some parameters admin only)

Cache policy object

FieldTypeRequiredDescription
appliedinteger— Number of sites updated.
default_group_idinteger— Platform default group; null = no group yet.
my_default_group_idinteger— Default group in effect for this tenant (the one it set, or the platform default if none).
my_default_group_setboolean— Whether this tenant has set its own default group.
sitesobject— Number of the tenant's sites by cache mode: group (follows a cache group) and custom (own rules).