# REST - Updating Device Measurements

**URL:** <https://community.cumulocity.com/t/rest-updating-device-measurements/187>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [May 22, 2019, 8:39am UTC](https://community.cumulocity.com/t/rest-updating-device-measurements/187 "2019-05-22T08:39:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jake\_Hilliges](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@Jake\_Hilliges](https://community.cumulocity.com/u/Jake_Hilliges)\
**Post date:** [May 22, 2019, 8:39am UTC](https://community.cumulocity.com/t/rest-updating-device-measurements/187/1 "2019-05-22T08:39:06Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Michael\_Welsing](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@Michael\_Welsing](https://community.cumulocity.com/u/Michael_Welsing)\
**Post date:** [August 1, 2019, 9:54am UTC](https://community.cumulocity.com/t/rest-updating-device-measurements/187/2 "2019-08-01T09:54:34Z")

</div>

Hi Jake,

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

best regards  
Michael

---

<div class="post-metadata">

**Author:** ![Jake\_Hilliges](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@Jake\_Hilliges](https://community.cumulocity.com/u/Jake_Hilliges)\
**Post date:** [August 1, 2019, 11:49pm UTC](https://community.cumulocity.com/t/rest-updating-device-measurements/187/3 "2019-08-01T23:49:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Mahboob\_Elahi](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@Mahboob\_Elahi](https://community.cumulocity.com/u/Mahboob_Elahi)\
**Post date:** [June 29, 2020, 1:51pm UTC](https://community.cumulocity.com/t/rest-updating-device-measurements/187/4 "2020-06-29T13:51:55Z")

</div>

hi Jake,

can you explain how you update measurements via REST.

---

<div class="post-metadata">

**Author:** ![Jake\_Hilliges](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@Jake\_Hilliges](https://community.cumulocity.com/u/Jake_Hilliges)\
**Post date:** [June 30, 2020, 5:56am UTC](https://community.cumulocity.com/t/rest-updating-device-measurements/187/5 "2020-06-30T05:56:06Z")

</div>

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/device-sdk/rest/#device-integration)  
[https://cumulocity.com/guides/files/rest/Cumulocity\_API.postman\_collection.json](https://cumulocity.com/guides/files/rest/Cumulocity_API.postman_collection.json) - postman collection

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [April 2, 2021, 3:42pm UTC](https://community.cumulocity.com/t/rest-updating-device-measurements/187/6 "2021-04-02T15:42:49Z")

</div>

Closed on April 2, 2021, 3:42pm UTC


