Version 2.1.1792967583 · latest Download OpenAPI Markdown

Cache groups

A set of cache rules that many sites can reference; either platform groups or tenant-owned groups.

cache-groupsCacheAuthentication: User (some parameters admin only)7 endpoints

List cache groups

GET/api/v2/cache-groups
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

Create cache group

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

Request body application/json

FieldTypeRequiredDescription
cacheCacheConfig— Cache rules, same as the cache field ({rules, ignore_params}) of the node contract schema/site.json; validated by the server against the contract.
desstring— Description
from_site_idinteger— Save from a site (rules are taken from the site's current effective value; cache is ignored).
is_defaultboolean— Platform default group (exactly one).
namestringRequired Name
sortinteger— Display order (smaller first).
switch_siteboolean— After saving, make the site reference the new group.

Get cache group

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

Update cache group

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

Request body application/json

FieldTypeRequiredDescription
cacheCacheConfig— Cache rules, same as the cache field ({rules, ignore_params}) of the node contract schema/site.json; validated by the server against the contract.
desstring— Description
namestring— Name
sortinteger— Display order (smaller first).

Delete cache group

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

Copy cache group

POST/api/v2/cache-groups/{id}/copy
Authentication: User (some parameters admin only)

Request body application/json

FieldTypeRequiredDescription
desstring— Description
namestringRequired Name
sortinteger— Display order (smaller first).

Set as platform default group

POST/api/v2/cache-groups/{id}/set-default
Authentication: Admin only

Cache groups object

FieldTypeRequiredDescription
cacheCacheConfig— Cache rules, same as the cache field ({rules, ignore_params}) of the node contract schema/site.json; validated by the server against the contract.
created_atstring— Created at
read-only
desstring— Description
from_site_idinteger— Save from a site (rules are taken from the site's current effective value; cache is ignored).
idinteger— Record ID
read-only
is_defaultboolean— Platform default group (exactly one).
read-only
namestring— Name
site_countinteger— Number of sites that reference it explicitly (tenant callers only count their own).
read-only
sortinteger— Display order (smaller first).
switch_siteboolean— After saving, make the site reference the new group.
tenant_idinteger— Owning tenant; null = platform group.
read-only
updated_atstring— Updated at
read-only