← API reference
Mutation / devices

upsertMetric

Create or update a metric. Requires metric:write permission.

Arguments

Metric data

Returns UpsertMetricPayload!

Explore in a view

Device Fleet
View exact SDL
"""Create or update a metric. Requires metric:write permission."""
upsertMetric(
  """Metric data"""
  input: UpsertMetricInput!
): UpsertMetricPayload! @topic(names: ["devices"])

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