Skip to main content

setDeviceTag

Assign the provided key-value pair to device(s)

setDeviceTag(
input: TagInput!
): Tag!

Arguments

setDeviceTag.input ● TagInput! non-null input devices

Type

Tag object devices

Key-Value Pair metadata to aid in classification of Devices

Code Samples

curl -X POST https://graphql.pointonenav.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_TOKEN" \
-d '{
"query": "mutation SetDeviceTag($input: TagInput!) { setDeviceTag(input: $input) { key value createdAt } }",
"variables": {
"input": {
"key": "location",
"value": "warehouse-a",
"ids": [
"your-device-id"
]
}
}
}'