Skip to main content

createDevices

Create multiple devices with auto-generated names based on the quantity supplied

createDevices(
quantity: Int!
enabled: Boolean
): [Device!]

Arguments

createDevices.quantity ● Int! non-null scalar common

createDevices.enabled ● Boolean scalar common

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 CreateDevices($quantity: Int!, $enabled: Boolean) { createDevices(quantity: $quantity, enabled: $enabled) { id label services { rtk { enabled } } } }",
"variables": {
"quantity": 2,
"enabled": true
}
}'