/api/agent
POST /api/agent/v1/metric
Changed onSave a previously constructed query as a named metric.
A metric is a reusable aggregation (a Card of type metric): the underlying query must have exactly one aggregation and at most one date/datetime grouping. The query parameter accepts a query_handle (UUID) returned by construct_query, or a base64-encoded MBQL string. MCP callers should always use the handle. Optionally specify display type, description, collection, and visualization settings. If collection_id is omitted the metric is saved to the caller's personal collection. Pass an explicit null to save it to the root collection. The response collection_path is the saved location.
post/api/agent/v1/metric
Request
- Base URL(relative, and the document was published on a file host, not at the API’s origin)
- AuthAPI key in header X-API-Key
Request body
Response
Successful response
Changes
- info
endpoint added
- info