Edit Device

Edit Device

PUT https://{server_address}/api/v1/organization/device

Query Parameters

Headers

Request Body

{
   "id": 165,
   "templateId": 353,
   "orgId": 577,
   "name": "My awesome device",
   "token": "etAxiiiYlDv4j7WCeb1pKW2Ck7UGWpgl",
   "activatedAt": 1702480139859,
   "ownerUserId": 879,
   "hardwareInfo": {
      "version": "1.0.0",
      "fwType": "TMPL0NqfCLjWX",
      "blynkVersion": "1.0.0",
      "boardType": "ESP8266",
      "build": "1",
      "templateId": "TMPL0NqfCLjWX"
   }
}

Request examples:

# curl command example:
$ curl -X PUT -H "Content-Type: application/json" \
      -H "Authorization: Bearer {accessToken}" \
      -d '{"name":"API Test Device"}' \
      https://fra1.blynk.cloud/api/v1/organization/device?deviceId=1

$ curl -X PUT -H "Content-Type: application/json" \
      -H "Authorization: Bearer eIdWHQqRfFmvP5LDDh-IGxPUzi7I27HthzCPAVmS" \
      -d '{"name":"API Test Device"}' \
      https://fra1.blynk.cloud/api/v1/organization/device?deviceId=1

Last updated