Update a metric definition
Updates the mutable fields of a metric definition. Requires an API key with the
write action scoped to the metric. Name, data type, and default aggregation are immutable.
Authorizations
API key passed in the header.
Path Parameters
The metric id.
Body
The fields to update; omitted fields are left unchanged.
displayNamenull | stringNew display name, if changing.
descriptionnull | stringNew description, if changing.
unitLabelnull | stringNew unit label, if changing.
tagsnull | arrayNew tag set, if changing (fully replaces the existing tags).
enumValuesnull | arrayWhen provided, fully replaces the metric's enum value set — any omitted enum value definitions are deleted.
Response
The updated metric definition.
metricIdstringStable identifier for the metric.
namestringProgrammatic name of the metric.
displayNamestringHuman-readable name of the metric.
descriptionstringDescription of what the metric measures.
unitLabelstringUnit label for the metric's values.
dataTypestringThe metric's data type.
defaultAggregationstringDefault aggregation used when binning this metric.
tagsarray<string>Free-form tags applied to the metric.
enumValuesnull | arrayAllowed enumerated values, when the metric is enum-typed.
isDeletedbooleanWhether the metric has been soft-deleted.
createdAtstring<date-time>Timestamp (UTC) when the metric was created.
updatedAtnull | string<date-time>Timestamp (UTC) when the metric was last updated.
createdBystringIdentifier of the actor that created the metric.
updatedBynull | stringIdentifier of the actor that last updated the metric.