Create Device

Create Device

POST https://{server_address}/api/v1/organization/device/create

Headers

Name
Type
Description

Authorization*

Bearer {access_token}

Content-Type*

application/json

Request Body

Name
Type
Description

templateId*

TMPL84aMXD6vd

Template identifier.

orgId

1

Organization identifier.

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.

onwerId*

1

User identifier, that will own this device.

{
    "error": {
        "message": "User is not found or you don't have access to him."
    }
}

Request examples:

# 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

Last updated