Metric

Create a metric variant

Changed on

Add a configuration of this metric for your organization, seeded from its Default. Edit it with PUT to change what it measures, then pin it where you want it used.

Threshold metrics have no variants: their configuration comes from the metric they derive from. Metrics in a package that manages its own variants reject this too.

post/v1/metric/definitions/{idOrSlug}/variants

Request

  • Base URL
    https://api.roark.ai
  • URL
    https://api.roark.ai/v1/metric/definitions/{idOrSlug}/variants
  • Auth
    HTTP bearer

Path parameters

idOrSlugstring required

Metric definition UUID or its stable slug.

Request body

namestring required

Name for the new variant. Must be unique for this metric within your organization and cannot be Default.

Example request

{
  "name": "Strict"
}

Response

The created variant

Changes