updateAggregate
updateAggregateUpdate an existing billable metric in Zenskar by modifying its name, data schema, aggregation query, or other optional fields.
Instructions
Update an existing Billable Metric. All body fields are optional — only send fields you want to change. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"aggregateId": "<aggregateId>"
},
"name": "updateAggregate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Updated name of the billable metric. | |
| dataschema | No | Updated data schema (JSON string). | |
| datasource | No | Updated data source UUID. | |
| aggregateId | Yes | The unique identifier (UUID) of the billable metric (aggregate) to update. | |
| __userContext | No | Internal user context for multi-tenant authentication and approval workflow | |
| cust_agg_query | No | Updated customer aggregate query (SQL/Jinja template). | |
| aggregation_query | No | Updated aggregate query (SQL/Jinja template). | |
| visual_query_builder | No | Updated visual query builder configuration. |