Skip to main content
1-Visitor
Jul 16, 2016 11:12 AM UTC
Solved

Thingworx Trial REST API failed

Hello, I got the Thingworx Trial Edition and installed it. But when I tried to use REST API, it seemed not work.

My test url is: http://10.66.15.150:80/Thingworx/Things/AngelThing/Properties/TestNumber?method=put&value=23&appKey=dab2dc0b-c371-4b9e-8…

I tried to use the PUT method but the data seemed not update.

Here are the screenshots.

It likes a GET method, why? What should I do?

BTW, when I used this REST API method in the Thingworx 5, it worked.

PaiChungAnswer
22-Sapphire I
Jul 18, 2016 8:07 PM UTC

There is an additional security feature that has turned off the ability to do PUT and POST

We took that away due to security risks, so you can do actual REST POST with something like Postman, but not from the URL line.

It can be turned on (but you will put yourself at risk) by going to the platform subsystem and allowing the Switch Request method.

4 replies

PaiChung22-Sapphire IAnswer
22-Sapphire I
Jul 18, 2016 8:07 PM UTC

There is an additional security feature that has turned off the ability to do PUT and POST

We took that away due to security risks, so you can do actual REST POST with something like Postman, but not from the URL line.

It can be turned on (but you will put yourself at risk) by going to the platform subsystem and allowing the Switch Request method.

Translate
1-Visitor
Jun 26, 2018 4:10 PM UTC

I'm unable to turn that feature on from the thingworx composer  (https://twx.studio-trial.vuforia.io/Thingworx/Composer/index.html) in the platformsubsystem. Also I'm unable to setup a server on tomcat.

Translate
5-Regular Member
Jul 18, 2016 8:44 PM UTC

Adding to Pai's reply, here's an article from our knowledge base regarding allowing REST calls through the browser.

Translate
aalbot1-VisitorAuthor
1-Visitor
Jul 20, 2016 2:02 AM UTC

Hi Aanjan,

    Now I'm using the Security Method, but thanks very much.

Angels

Translate