Skip to main content
5-Regular Member
April 2, 2017
Question

Delete a thing in rest api without changing Platformsubsystem

  • April 2, 2017
  • 1 reply
  • 2527 views

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.

1 reply

5-Regular Member
April 3, 2017

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.

emadar5-Regular MemberAuthor
5-Regular Member
April 3, 2017

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.

5-Regular Member
April 3, 2017

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?