← API reference
Mutation / devices

updateDevice

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

Arguments

Device ID to update

Fields to update — only provided fields are changed

Returns UpsertDevicePayload!

Explore in a view

Device Fleet
View exact SDL
"""
Update a device. Only provided fields are changed. Requires device:write permission.
"""
updateDevice(
  """Device ID to update"""
  id: DeviceID!
  """Fields to update — only provided fields are changed"""
  input: UpdateDeviceInput!
): UpsertDevicePayload! @topic(names: ["devices"])

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