Follow the On-board fleet devices guide to add the two devices. The device names we will use in the rest of this guide are the ones described below so use the device creation examples below instead of the device creation example in the On-board fleet devices guide.
Device stadium1
Add a device called 'stadium1' to the 'stadium' site using the shortCode
from the device's local UI:
PUT https://api.mk.io/api/projects/myproject/v1/flow/devices/stadium1
{
"metadata": {
"displayName": "Stadium Device 1"
},
"spec": {
"siteName": "stadium",
"shortCode": "R3TYN5NYGJ"
}
}
Device studio1
Add a device called 'studio1' to the 'studio' site using the shortCode
from the device's local UI:
PUT https://api.mk.io/api/projects/myproject/v1/flow/devices/studio1
{
"metadata": {
"displayName": "Studio Device 1"
},
"spec": {
"siteName": "studio",
"shortCode": "A6RMCC3IUB"
}
}