Skip to main content

createDevice

Create a single device.

createDevice(
device: DeviceInput!
): Device!

Arguments

createDevice.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 CreateDevice($device: DeviceInput!) { createDevice(device: $device) { id label services { rtk { enabled ntrip { login password } polarisKey } } } }",
"variables": {
"device": {
"label": "My GPS Device",
"enabled": true
}
}
}'