/api/agent
PUT /api/agent/v1/metric/{id}
Changed onUpdate a saved metric. Patch semantics - only fields that you pass are changed.
Set collection_id to move the metric to a different collection. Set archived: true to archive. Archiving is a soft delete - there is no delete endpoint. It can be reversed by setting archived: false. Pass query (a query_handle from construct_query, or a base64 MBQL string) to replace the underlying query; the replacement must still be a valid metric (exactly one aggregation, at most one date/datetime grouping). The target card must be a metric — use update_question for questions.
put/api/agent/v1/metric/{id}
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
Path parameters
idinteger required
value must be an integer greater than zero.
Request body
Response
Successful response
Changes
- info
endpoint added
- info