cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

How to change multiple properties with one PUT request

Srikanthduba
5-Regular Member

How to change multiple properties with one PUT request

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  

1 ACCEPTED SOLUTION

Accepted Solutions
Alessio
15-Moonstone
(To:Srikanthduba)

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

 

 

View solution in original post

2 REPLIES 2
Alessio
15-Moonstone
(To:Srikanthduba)

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

 

 

Srikanthduba
5-Regular Member
(To:Alessio)

It is working 

thanks Alessio

 

Top Tags