Version 2.1.1792967583 · latest Download OpenAPI Markdown

Site groups

Groups for organizing sites; names are unique within a tenant and a group that still contains sites cannot be deleted.

site-groupsSitesAuthentication: User (some parameters admin only)5 endpoints

List site groups

GET/api/v2/site-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
idsstring— Only list these IDs: comma-separated positive integers, at most 200 after deduplication (same as the page_size limit; more returns 400); an empty value is the same as omitting it. Combined with other filters as an intersection; IDs you cannot see are silently left out. Pagination is unchanged: set page_size to at least the number of IDs to get them in one page

Create site group

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

Query parameters

FieldTypeRequiredDescription
tenant_idinteger— Owning tenant when an admin creates on behalf of a tenant (required); ignored for tenant callers, whose own account is always the owner.

Request body application/json

FieldTypeRequiredDescription
desstring— Description
namestringRequired Name

Get site group

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

Update site group

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

Request body application/json

FieldTypeRequiredDescription
desstring— Description
namestringRequired Name

Delete site group

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

Site groups object

FieldTypeRequiredDescription
created_atstring— Created at
read-only
desstring— Description
idinteger— Record ID
read-only
namestring— Name
tenant_idinteger— Owner tenant (user) ID
read-only
updated_atstring— Updated at
read-only