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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

REST api returns Http 400 Error code

dnaik
1-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.

4 REPLIES 4
supandey
19-Tanzanite
(To:dnaik)

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

ankigupta
5-Regular Member
(To:dnaik)

Hi Debiprasad Naik​,

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

ankigupta
5-Regular Member
(To:dnaik)
Cat
5-Regular Member
5-Regular Member
(To:dnaik)

    I have attached screenshots for your reference.

    1. json in Body 

  

    2.  Content-Type & appKey in Header 

Top Tags