Edit Device

Edit Device

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

Query Parameters

NameTypeDescription

deviceId*

1

Device identifier. Should be a valid integer.

Headers

NameTypeDescription

Authorization*

Bearer {access_token}

Content-Type*

application/json

Request Body

NameTypeDescription

name*

My Awesome Device

Device name. Should be up to 50 symbols in length and may contains only letters, digits, spaces, apostrophes, underscores and hyphens.

{
    "error": {
        "message": "Device with identifier 1 is not found or belong to another organization."
    }
}

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