custom-metrics
Update Custom Metric
Changed onEdit a custom metric.
A new revision is created ONLY when a revision-defining field (prompt/model/config/allow_na) actually changes — that correctly hides results produced under the old config. Metric-level metadata (name/description/category/tags/linked agents/applies_to_*) is applied to the metric row in place and never spawns a revision: every historical MetricResult joins on active_revision_id, so a cosmetic edit that repointed it would silently orphan (zero) the metric's entire history across the logs page, widgets, drill and export. Never mutates existing revisions.
put/api/v1/custom-metrics/{metric_id}
Request
- Base URL: https://api.getanana.com (the document declares no server; this is the origin it was published from)
- URL: https://api.getanana.com/api/v1/custom-metrics/{metric_id}
- Auth: none declared
Path parameters
metric_idstring uuid required
Request body
Response
Successful Response
Changes
- info
added the new optional request property
- info
added the required property
/to the response with the status
- info