Skip to main content
1-Visitor
October 16, 2015
Question

How do i invoke a service via ReST on Thingworx 6.5.xxxxx

  • October 16, 2015
  • 1 reply
  • 1359 views

I'm using Thingworx 6.5 and am trying to invoke a service using Postman.

url: http://10.0.0.20:8081/Thingworx/Things/SecurityMonitor/Services/GetDescription

method: POST

headers:

- appKey: xxxxxxxxxxxx

- Accept: application/json-compressed

- Content-Type: application/json-compressed

I've associated my appKey to Administrator account in Thingworx

I keep getting a 403 error

Not sure what I'm doing wrong.

    1 reply

    1-Visitor
    October 19, 2015

    Hi

    It doesn't like the Content-Type: application/json-compressed. It should work if you change it to "application/json".

    Here's a screen-shot of my working configuration, appKey redacted :

    Postman.png

    rtaylor-31-VisitorAuthor
    1-Visitor
    October 20, 2015

    That was it!

    Thanks.