{
"error": {
"message": "User is not found or you don't have access to him."
}
}
{
"error": {
"message": "Template is not found."
}
}
{
"error": {
"message": "Organization is not found or you don't have access to it."
}
}
{
"id": 1,
"templateId": 353,
"orgId": 578,
"name": "My awesome device",
"token": "ObArJM-PmArETx2gCEQxYqRri8CidcdL",
"lifecycleStatus": {
"name": "Offline",
"icon": "icon",
"color": "#334455"
},
"activatedAt": 1702480430139,
"firstConnectTime": 0,
"firmwareUpdatedAt": 0,
"connectTime": 0,
"disconnectTime": 0,
"ownerUserId": 879,
"hardwareInfo": {
"version": "1.0.0",
"fwType": "TMPL0NqfCLjWX",
"blynkVersion": "1.0.0",
"boardType": "ESP8266",
"build": "1",
"templateId": "TMPL0NqfCLjWX"
},
"ip": "127.0.0.1",
"isLocked": false,
"lastReceivedEventAt": 0
}
# curl command example:
$ curl -X POST -H "Content-Type: application/json" \
-H "Authorization: Bearer {accessToken}" \
-d '{"templateId":"TMPL84aMXD6vd","orgId":6722,"name":"API Test Device","ownerId":11456}' \
https://fra1.blynk.cloud/api/v1/organization/device/create
$ curl -X POST -H "Content-Type: application/json" \
-H "Authorization: Bearer eIdWHQqRfFmvP5LDDh-IGxPUzi7I27HthzCPAVmS" \
-d '{"templateId":"TMPL84aMXD6vd","orgId":6722,"name":"API Test Device","ownerId":11456}' \
https://fra1.blynk.cloud/api/v1/organization/device/create