Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

POST HTTP request from External API

vikashg34827223
Level 2
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
ramon_bisswanger
Correct answer by
Employee
Employee

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
ramon_bisswanger
Correct answer by
Employee
Employee

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

vikashg34827223
Level 2
Level 2

Thanks Ramon,

 

Any pointers to such API which can transform the structure?

 

Thanks!!

Vikash