POST HTTP request from External API | Community
Skip to main content
Level 2
June 22, 2020
Solved

POST HTTP request from External API

  • June 22, 2020
  • 1 reply
  • 2511 views

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.
Best answer by bisswang

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

1 reply

bisswangAdobe EmployeeAccepted solution
Adobe Employee
June 25, 2020

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

Level 2
June 25, 2020

Thanks Ramon,

 

Any pointers to such API which can transform the structure?

 

Thanks!!

Vikash