← API reference
Mutation / devices

updateMetric

Update a metric. Only provided fields are changed. Requires metric:write permission.

Arguments

Metric ID to update

Fields to update — only provided fields are changed

Returns UpsertMetricPayload!

Explore in a view

Device Fleet
View exact SDL
"""
Update a metric. Only provided fields are changed. Requires metric:write permission.
"""
updateMetric(
  """Metric ID to update"""
  id: MetricID!
  """Fields to update — only provided fields are changed"""
  input: UpdateMetricInput!
): UpsertMetricPayload! @topic(names: ["devices"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.