Skip to main content
POST
Create a new metric version (deprecated)

Authorizations

Authorization
string
header
required

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

Path Parameters

metric_id
string
required

The unique identifier of the metric to version

Body

application/json

A new version of a metric: its definition, a message, and whether to deploy it.

message
string
required
content
object
required

Metric definition snapshot for a new metric version. Five fields are optional and fall back to server-side defaults when omitted:

  • description → ""
  • return_type → "float"
  • enabled_in_prod → true for HUMAN metrics, false otherwise
  • sampling_percentage → 10
  • filters → { "filterArray": [] }
deploy_immediately
boolean

Response

Metric version created successfully

The metric version that was created.

success
enum<boolean>
required
Available options:
true
data
object
required

A versioned snapshot of a metric definition.