Metric
Create a new version for a metric
Create a new version for the given metric.
Permissions:
This endpoint requires the following permissions:
- Metric:ModifyMetric for the metric to create a new version for.
post/v1/{organization}/metric/{metric_id}/version/
Request
- Base URLhttps://api.amigo.ai
- AuthHTTP bearer and API key in header X-ORG-ID and HTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
organizationstring required
metric_idstring required
The ID of the metric to create a new version for.
Query parameters
versioninteger nullable
The version number of the new metric version. If specified, this endpoint throws an error if the next version of the metric in the database doesn't equal to the value of this parameter.
Headers
x-mongo-cluster-namestring nullable
The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.
Sec-WebSocket-Protocolstring[]
Request body
Response
Succeeded.
Changes
No operation changes recorded.