Skip to main content
1-Visitor
January 28, 2019
Solved

How to change multiple properties with one PUT request

  • January 28, 2019
  • 2 replies
  • 1876 views

Hi, 

i tried to change multiple properties with one PUT request,Capture.JPG

 

but i got "405 Method Not Allowed" exception error

I need help with this

 

Thanks in advance

Srikanth  

Best answer by Alessio

Use the following URL:

 

http://erptest:8080/Thingworx/Things/IAQ_BD/Properties/*

then, as the body of the PUT request use the following JSON data:

 

{"CO2": "75", "Humidity": "60", "Temperature": "44"}

Of course you also have to set the Accept and Content-Type headers, but I assume you are already doing so.

 

HTH,

Alessio

 

 

2 replies

Alessio15-MoonstoneAnswer
15-Moonstone
January 28, 2019

Use the following URL:

 

http://erptest:8080/Thingworx/Things/IAQ_BD/Properties/*

then, as the body of the PUT request use the following JSON data:

 

{"CO2": "75", "Humidity": "60", "Temperature": "44"}

Of course you also have to set the Accept and Content-Type headers, but I assume you are already doing so.

 

HTH,

Alessio

 

 

1-Visitor
January 28, 2019

It is working 

thanks Alessio