# Is there a PUT http method available for measurements API?

**URL:** <https://community.cumulocity.com/t/is-there-a-put-http-method-available-for-measurements-api/6318>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [March 20, 2022, 9:41am UTC](https://community.cumulocity.com/t/is-there-a-put-http-method-available-for-measurements-api/6318 "2022-03-20T09:41:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sp00725748](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sp00725748](https://community.cumulocity.com/u/sp00725748)\
**Post date:** [March 20, 2022, 9:41am UTC](https://community.cumulocity.com/t/is-there-a-put-http-method-available-for-measurements-api/6318/1 "2022-03-20T09:41:42Z")

</div>

#### What product/components do you use and which version/fix level?

Cumulocity measurements API

#### Are you using a free trial or a product with a customer license?

Customer License

#### What are trying to achieve? Please describe in detail.

I am trying to modify the measurments using the measurement API’s PUT, but it says method not allowed.  
How can I use PUT http method in meausurement/measurements Rest API to modify the measurements values?

#### Do you get any error messages? Please provide a **full error** message screenshot and log file.

405 Method not allowed is the https response I get. Need to know the body, url of the rest api call with PUT Method

#### Have you installed latest fixes for the products

Think so.

---

<div class="post-metadata">

**Author:** ![Harald\_Meyer](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/harald_meyer/32/1959_2.png) [@Harald\_Meyer](https://community.cumulocity.com/u/Harald_Meyer)\
**Post date:** [March 21, 2022, 6:47am UTC](https://community.cumulocity.com/t/is-there-a-put-http-method-available-for-measurements-api/6318/2 "2022-03-21T06:47:49Z")

</div>

Hi,

no there is no PUT method because measurements cannot be changed once created. You will need to delete and create a new one if you want to change something.

Harald

---

<div class="post-metadata">

**Author:** ![sp00725748](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sp00725748](https://community.cumulocity.com/u/sp00725748)\
**Post date:** [March 21, 2022, 7:40am UTC](https://community.cumulocity.com/t/is-there-a-put-http-method-available-for-measurements-api/6318/3 "2022-03-21T07:40:54Z")

</div>

Hi Harald, I was also thinking to follow the approach to delete and recreate. Thanks a lot for your response.

Regards  
P. Sethu pandia raja

---

<div class="post-metadata">

**Author:** ![sumit.singh](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@sumit.singh](https://community.cumulocity.com/u/sumit.singh)\
**Post date:** [March 23, 2022, 9:22am UTC](https://community.cumulocity.com/t/is-there-a-put-http-method-available-for-measurements-api/6318/4 "2022-03-23T09:22:56Z")

</div>

can u tell me how can i create or register a cutom template via mqtt for cumulocity

---

<div class="post-metadata">

**Author:** ![Christian\_Guether1](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/christian_guether1/32/14848_2.png) [@Christian\_Guether1](https://community.cumulocity.com/u/Christian_Guether1)\
**Post date:** [March 23, 2022, 9:54am UTC](https://community.cumulocity.com/t/is-there-a-put-http-method-available-for-measurements-api/6318/5 "2022-03-23T09:54:04Z")

</div>

Hi Sumit,

create a separate thread next time you want to ask a question which isn’t relevant to the current thread. About your question, have a look at this [thread](https://community.cumulocity.com/t/i-want-to-register-custom-measurement-templates-via-mqtt/7751/2) in which Philipp describes how to create custom templates.

Best regards  
Christian

---

<div class="post-metadata">

**Author:** ![Christian\_Guether1](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/christian_guether1/32/14848_2.png) [@Christian\_Guether1](https://community.cumulocity.com/u/Christian_Guether1)\
**Post date:** [March 23, 2022, 9:54am UTC](https://community.cumulocity.com/t/is-there-a-put-http-method-available-for-measurements-api/6318/6 "2022-03-23T09:54:20Z")

</div>

Closed on March 23, 2022, 9:54am UTC


