Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
Hi, everybody! I'm need in your help! How can write http request for url line for change options in servises thing?
How i do thing:
1) i'm created new thing with key and adding to them general term.
2) after created properties and service
3) and on end created "permissions setting".
My url line was so:
Us composer 7. What am I doing wrong?
Solved! Go to Solution.
Guys, thank you for your help me!!!) all have earned !))) i am very happy but I'm don't understand why, but correct request was so: http://52.222.99.50/Thingworx/Things/name thing/Services/name service/?appKey= itself app key&x-thingworx-sx-thingworx-session=true&method=post&value=1 It's strange how and the last time I did the same thing , maybe the reason is really in setting the subsystem?
Aleksey, are you trying to change a properties value or are you trying to send input parameters for a service? Here's a knowledge base article on how to allow REST calls through the browser.
Aanjan, I try to send input values for a service. Thank you for this information, i did what was written in this article, but i have all the same errors, which i write Andrew.
Hello, Aleksey
Try to fix your link with x-thingworx-session=true
something like
http://52.5.22.242/Thingworx/Things/<Your Thing>/Services/<Your Services>?appKey=<your appKey>&method=post&x-thingworx-session=true&Number=1
Hope it will help.
Andrew, thank you for your help! Yes, so really it works. But now i again faced with problem. Request passes, but data in properties not change. I look my log and see several errors: Error sending response: java.lang.NullPointerException; Invalid request: com.thingworx.common.exceptions.InvalidRequestException: Illegal Content... Whats this can be?
Guys, thank you for your help me!!!) all have earned !))) i am very happy but I'm don't understand why, but correct request was so: http://52.222.99.50/Thingworx/Things/name thing/Services/name service/?appKey= itself app key&x-thingworx-sx-thingworx-session=true&method=post&value=1 It's strange how and the last time I did the same thing , maybe the reason is really in setting the subsystem?