ProductionMu Mutation

updateDevice

Topics: Devices

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

Returns

UpsertDevicePayload!

Arguments

id

DeviceID!Required

Device ID to update

Fields to update — only provided fields are changed

Exact field 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"])

Declared on Mutation. Access is checked by the platform for each operation.