Skip to main content

setDeviceProfile

Apply device profile to one or more devices.

You can assign a profile to a maximum of 1000 device IDs per call

setDeviceProfile(
profileId: ID!
deviceIds: [ID!]!
): [Device!]!

Arguments

setDeviceProfile.profileId ● ID! non-null scalar common

setDeviceProfile.deviceIds ● [ID!]! non-null 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 SetDeviceProfile($profileId: ID!, $deviceIds: [ID!]!) { setDeviceProfile(profileId: $profileId, deviceIds: $deviceIds) { id label profile { id name } } }",
"variables": {
"profileId": "your-profile-id",
"deviceIds": [
"your-device-id"
]
}
}'