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/

Path parameters

organizationstring required
metric_idstring required

The ID of the metric to create a new version for.

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.

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.

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

descriptionstring required

Response

Succeeded.

versioninteger required

Numerical version ID for the version just created. For the first version of a metric, this field will be 1.