cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

REST api returns Http 400 Error code

Highlighted
Newbie

REST api returns Http 400 Error code

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.

Tags (1)
4 REPLIES 4
Highlighted

Re: REST api returns Http 400 Error code

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

Highlighted

Re: REST api returns Http 400 Error code

Hi Debiprasad Naik​,

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

Highlighted

Re: REST api returns Http 400 Error code

Highlighted

Re: REST api returns Http 400 Error code

    I have attached screenshots for your reference.

    1. json in Body 

  

    2.  Content-Type & appKey in Header 

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!