Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Hello, I'd like to perform changes using the Rest API, but it seems I need to change the PlatformSubsystem and enable Allow Request Method Switch.
I'd like to perform my changes without enabling that (security issues), and I've seen on the thingworx tutorial that this option was depreciated.
How could I do that?
Thanks!
Elie.
Hi Elie Madar,
You can actually create a custom Service to delete the Thing and call that service using REST.
Try using a POSTMAN for the REST call.
The problem is I cannot access rest API without enabling "Allow Request Method Switch" in the platform subsystem. It gives me an error of forbidden access.
The same goes for importing an extension or a file.
Which ThingWorx version are you on. Allow Request Method Switch should not have impact on REST calls from POSTMAN.
It's false in my local instance and I am able to make REST calls via POSTMAN.
Does the user trying to invoke the service have Visibility/Runtime Permission for that Service?
Hi, I'm on Thingworx 7.4. I specify Administrator/admin user so it should actually work
After more inquiries, it seems this is the "Filter Content Type" option that blocks my rest calls.
What is the value of the Content-Type parameter in your rest call?