POST HTTP request from External API | Community
Skip to main content
Level 2
Jun 22, 2020 1:32 PM UTC
Solved

POST HTTP request from External API

Hi,

 

we are planning to call a POST HTTP request from external API.

The API takes json as input with below structure:

 {
   "fname":"Vikash",
"lname":"Goel"
    }
but when we try to  call the API from External API activity with fname and lname as request parameters.
the request is formed as:
 {"params":
{
   "fname":"Vikash",
"lname":"Goel"
    }}
and this modified structure is not parsed by the destination service.
 
can some one please help on this?
 
Thanks!!
Vikash
 
 
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
bisswangAccepted solution
Employee
Jun 25, 2020 6:40 AM UTC

Hi Vikash,

ACS only supports the format you mentioned below.

So you either need to adapt the target service to accept this format or use any intermediate API gateway / redirection service which is doing a format transformation

2 replies

bisswangAccepted solution
Employee
Jun 25, 2020 6:40 AM UTC

Hi Vikash,

ACS only supports the format you mentioned below.

So you either need to adapt the target service to accept this format or use any intermediate API gateway / redirection service which is doing a format transformation

Translate
Level 2
Jun 25, 2020 6:48 AM UTC

Thanks Ramon,

 

Any pointers to such API which can transform the structure?

 

Thanks!!

Vikash

Translate