Hi,
I am trying to set the value of a property using the following REST Api command -
http://<erverip>/Thingworx/Things/AndroidAbcd/Properties/cpuUsage?method=put&value=75&appKey=<appkey>&x-thingworx-session=true
however the value is not being updated. What may be the issue?
Anurag, just to make sure, you can go in and change the property on the Thing directly, correct? Do you get any response when you set the property?
Ravi, I can can change the value directly by going to the Thing -> properties -> set value. The response from the url is the value of the property which shows it has not been updated.
Hi,
Any update on this. It may be noted that I am using the trail server which I started after creating a developer account.
Thanks
Anurag,
Are you doing this through Postman or the browser?
Meghan
I am pasting the url directly in the browser. I tried using postman as well -
Action: PUT
URL: http://<serverip>/Thingworx/Things/AndroidAbcd/Properties?appKey=<apikey>&x-thingworx-session=true
Header: Content-Type:application/json
Body: { "cpuUsage":"80" }
But this does not work as well.
Hi Anurag,
Please make sure you have check marked "Allow request method switch" in configuration of Platform subsystem.
you need to do this because you are trying to set property value from external source. Thanks!