Create a new metric version
Metric Versions
Create a new metric version
Snapshot the supplied metric definition as a new version. By default the version is created as a draft (deployed: false); set deploy_immediately: true to also make it the live version in the same transaction.
POST
Create a new metric version
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The unique identifier of the metric to version
Body
application/json
Request body for POST /v1/metrics/{metric_id}/versions
Metric definition snapshot accepted by POST /v1/metrics/{metric_id}/versions. Six fields are optional and fall back to server-side defaults when omitted:
description→""return_type→"float"enabled_in_prod→truefor HUMAN metrics,falseotherwiseneeds_ground_truth→falsesampling_percentage→10filters→{ "filterArray": [] }

