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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

REST api returns Http 400 Error code

dnaik
1-Visitor

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
12-Amethyst
(To:dnaik)

Hi Debiprasad Naik​,

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

ankigupta
12-Amethyst
(To:dnaik)
Cat
10-Marble
10-Marble
(To:dnaik)

    I have attached screenshots for your reference.

    1. json in Body 

  

    2.  Content-Type & appKey in Header 

Announcements


Top Tags