REST - Updating Device Measurements

Using the REST API is it possible to update device measurements by using the serial number of device,external id of device or something other than the system id for the device that is generated when registering the device to Cumulocity?

Hi Jake,

as measurement can’t be updated at all this will not work.

best regards
Michael

Hi Michael,

I am currently updating measurements via the REST API for over 300 devices using the Cumulocity generated id. I have since found a work around where I check if device is registered and store the id returned for each device.

Thanks

hi Jake,

can you explain how you update measurements via REST.

Hi Mahboob,

I update them within a nodeJS script implementing the cumulocity API, I used the device integration guide as a reference point.
https://cumulocity.com/guides/device-sdk/rest/#device-integration
https://cumulocity.com/guides/files/rest/Cumulocity_API.postman_collection.json - postman collection