Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

idOrSlug
string
required

Metric definition UUID or its stable slug.

Body

application/json

Create a variant, seeded from the metric's Default configuration. Edit it afterwards with PUT to change what it measures.

name
string
required

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

Required string length: 1 - 100
Example:

"Strict"

Response

The created variant

data
object
required

One named configuration of a metric.