v1

latestOpenAPI 3.0.0Proprietary2026-08-062711471.0 MB
Object aggregations

Update aggregation

Changes the operation of an aggregation. Requires a USER API key.

patch/public/v1/objects/{name}/views/{viewId}/aggregations/{aggId}

Path parameters

namestring required
Example:deals
viewIdinteger required
Example:11
aggIdinteger required
Example:5

Request body

operation'COUNT_EMPTY' | 'COUNT_FILLED' | 'PERCENT_EMPTY' | 'PERCENT_FILLED' | 'SUM' | 'AVERAGE' | 'MIN' | 'MAX' | 'COUNT_TRUE' | 'COUNT_FALSE' | 'PERCENT_TRUE' | 'PERCENT_FALSE' required

Example request

{
  "operation": "COUNT_EMPTY"
}

Response

Updated aggregation

oktrue required

Example response

{
  "ok": true,
  "data": {
    "id": 1,
    "view_id": 1,
    "column_id": 1,
    "operation": "example",
    "tag_id": 1,
    "created_at": "example",
    "updated_at": "example"
  }
}