Skip to main content
1-Visitor
October 26, 2016
Question

REST api returns Http 400 Error code

  • October 26, 2016
  • 4 replies
  • 3453 views

I was trying to call REST api of a external system  through Thingworx using function postJson(..) method. But It returns http status 400.

But same api works well in Postman. Any suggestion ?

Note: In both the channel(i.e. postman and Thingworx) REST header is being set correctly and REST URL is being used as exactly same.

4 replies

5-Regular Member
October 26, 2016

Hi Debiprasad, could you please share your REST call? In the meantime, just wanted to check if you have had the chance to look at the on ThingWorx REST Design

5-Regular Member
October 26, 2016

Hi Debiprasad Naik​,

Try switching on Allow Request Method Switch in the platform Subsystem configuration.

5-Regular Member
October 26, 2016
1-Visitor
June 20, 2017

    I have attached screenshots for your reference.

    1. json in Body 

  

    2.  Content-Type & appKey in Header