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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| aggregateId | Yes | The unique identifier (UUID) of the billable metric (aggregate) to update. | |
| name | No | Updated name of the billable metric. | |
| dataschema | No | Updated data schema (JSON string). | |
| aggregation_query | No | Updated aggregate query (SQL/Jinja template). | |
| cust_agg_query | No | Updated customer aggregate query (SQL/Jinja template). | |
| visual_query_builder | No | Updated visual query builder configuration. | |
| datasource | No | Updated data source UUID. | |
| __userContext | No | Internal user context for multi-tenant authentication and approval workflow |