Records

Group heads and totals of records

POST
/records/types/{record_type_id}/rows/aggregate

Group heads and totals of a record type: count and measures (sum, avg, min, max over number and money fields, count of filled values over any stored field) per group value, with the filter, q and view_key of records.rows.query. Groups sort by value and page with a cursor; order count returns the largest groups for value pickers. Append-only types grouped by entry_key page their entries newest first with date, source and reversal links. A view with groups.levels opens its heads level by level: prefix heads, the values below, the second level; each head carries tree, its token as parent reads the level below, depth reads all levels at once. A view with a balance adds opening and closing balance per head for a period. Page the rows of one group with records.rows.query and group.

Authorization

bearerApiKey
AuthorizationBearer <token>

Create a scoped API key in the Adlass settings.

In: header

Path Parameters

record_type_id*string

Resource identifier: record_type_id.

Formatuuid

Header Parameters

X-Request-Id?string

Optional correlation identifier.

Lengthlength <= 128

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/records/types/123e4567-e89b-42d3-a456-426614174000/rows/aggregate" \  -H "Content-Type: application/json" \  -d '{}'
{}