Skip to main content

updateDevice

Modify an existing device

updateDevice(
device: DeviceInput!
): Device!

Arguments

updateDevice.device ● DeviceInput! non-null input devices

Type

Device object devices

Contains information about a Device in the system

Code Samples

curl -X POST https://graphql.pointonenav.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_TOKEN" \
-d '{
"query": "mutation UpdateDevice($device: DeviceInput!) { updateDevice(device: $device) { id label updatedAt } }",
"variables": {
"device": {
"id": "your-device-id",
"label": "Updated Device Name"
}
}
}'