API Overview
API Mutation
API Query
API Subscription
Webhooks
Hardware

Metadata

We allow for updating metadata through our GraphQL API. This allows you to send any data to the devices to support you with configuration of your devices.

The device can then subscribe to this topic:

POINT/TENANT-MQTT-USERNAME/DEVICE-ID/METADATA

As a practical example we have below an example where we need to let our device know which wifi networks it is allowed and abled to connect with.

mutation {
point {
update(
input: {
id: "6048ddbf080ef77874d1fc27"
point: {
metadata: {
GW: [
{ Name: "KverndalenMultinode",
User: "Username",
PW: "Password"
}
{ Name: "GressbanenMultinode",
User: "Username",
PW: "Password"
}
]
}
}
}
) {
name
metadata
}
}
}

..which then gives this result in the GraphQL API

{
"data": {
"point": {
"update": {
"name": "MobileDatalogger",
"metadata": {
"GW": [
{
"Name": "SomeRoomGateway",
"User": "Username",
"PW": "Password"
},
{
"Name": "SomeOtherRoomGateway",
"User": "Username",
"PW": "Password"
}
]
}
}
}
}
}

..and in turn will enable your device to retrieve this JSON string

 {
"GW":[
{
"Name": "SomeRoomGateway",
"User": "Username",
"PW": "Password"
},
{
"Name": "SomeOtherRoomGateway",
"User": "Username",
"PW": "Password"
}
]
}
astronaut

Ready to get started?