Mutation / devices
updateMetric
Update a metric. Only provided fields are changed. Requires metric:write permission.
Arguments
idMetricID!Metric ID to update
inputUpdateMetricInput!Fields to update — only provided fields are changed
Returns UpsertMetricPayload!
Explore in a view
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.