Expand my Community achievements bar.

SOLVED

POST HTTP request from External API

Avatar

Level 2

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
 
 
1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

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

Avatar

Level 2

Thanks Ramon,

 

Any pointers to such API which can transform the structure?

 

Thanks!!

Vikash