Records
Aggregate matching records
POST
Requires the read scope.
bearerAuthheader
AuthorizationBearer <token>A workspace API key.
object*stringObject API name.
application/json- body
search?stringKeywords within this object only, matched by Postgres full-text search over its label and searchable fields. Every word must match, as a whole word or the start of one ("Dan" finds "Dana"); accents are ignored.
Length
1 <= length <= 500filter?aggregates?array<>Items
items <= 50Default
[]groupBy?stringA filterable select field: also compute the total and aggregates per option.
Successful response.
application/json- response
total*integerRange
-9007199254740991 <= value <= 9007199254740991values*array<>groups?array<>curl -X POST 'https://retainer.tamloot.cc/v1/objects/company/aggregate' \ -H 'Authorization: Bearer YOUR_WORKSPACE_API_KEY' \ -H 'Content-Type: application/json' \ -d '{ "aggregates": [ { "field": "amount", "op": "sum" } ]}'Example Response
{ "total": -9007199254740991, "values": [ { "field": "string", "op": "countEmpty", "value": 0, "mixedCurrencies": true } ], "groups": [ { "value": "string", "total": -9007199254740991, "values": [ { "field": "string", "op": "countEmpty", "value": 0, "mixedCurrencies": true } ] } ]}Request a schema change POST
Submit schema operations. Changes that need review are proposed for a workspace administrator. Requires the `schema:write` scope.
Clear your personal memory POST
The person must be signed in to the web app. Clears personal memory in the current workspace. If supplied, Origin must match the deployment origin. Requires the `read` scope.