Update Device Metadata Value
Last updated
Was this helpful?
You can update the value of any single-value (text, number, hotspot, device name, list, int, imei, iccid) device meta field using its identifier.
GET https://{server_address}/external/api/device/meta/update?token={token}&metaFieldId={metaFieldId}&value={metaFieldValue}
or by metafield name (param and value are case sensitive, should be properly encoded):
GET https://{server_address}/external/api/device/meta/update?token={token}&metaFieldName={metaFieldId}&value={metaFieldValue}
https://fra1.blynk.cloud/external/api/device/meta/update?token=EzHOlVG4dOdkPozcZutxK0AlkrsJAVff&metaFieldId=3&value=Sample+value
https://fra1.blynk.cloud/external/api/device/meta/update?token=EzHOlVG4dOdkPozcZutxK0AlkrsJAVff&metaFieldName=Meta%20Name&value=Sample%20value
200 OK
400 Bad Requets
{"error":{"message":"Invalid token."}}400 Bad Requets
400 Bad Requets
400 Bad Requets
You can get the Device auth token in Device info.
Last updated
Was this helpful?
Was this helpful?
{"error":{"message":"Wrong metaField format"}}{"error":{"message":"MetaField doesn't exist"}}{"error":{"message":"Wrong value"}}
