Update Device Metadata

Update Device Metadata

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

Headers

NameTypeDescription

Authorization*

Bearer {access_token}

Content-Type

application/json

Request Body

NameTypeDescription

deviceId*

1

Device identifier.

metaFieldId*

1

MetaField identifier.

newValue*

New Value

New metafield string value.

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

Request examples:

# curl command example:
$ curl -X POST -H "Content-Type: application/json" \
      -H "Authorization: Bearer {accessToken}" \
      -d '{"deviceId":1,"metaFieldId":1,"newValue":5}' \
      https://fra1.blynk.cloud/api/v1/organization/device/metafield

$ curl -X POST -H "Content-Type: application/json" \
      -H "Authorization: Bearer eIdWHQqRfFmvP5LDDh-IGxPUzi7I27HthzCPAVmS" \
      -d '{"deviceId":1,"metaFieldId":1,"newValue":5}' \
      https://fra1.blynk.cloud/api/v1/organization/device/metafield

Last updated