POST HTTP request from External API

Avatar

Avatar
Validate 1
Level 2
vikashg34827223
Level 2

Likes

2 likes

Total Posts

28 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Give Back
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
vikashg34827223
Level 2

Likes

2 likes

Total Posts

28 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Give Back
Boost 1
Affirm 1
View profile
vikashg34827223
Level 2

22-06-2020

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
 
 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 250
Employee
ramon_bisswanger
Employee

Likes

271 likes

Total Posts

397 posts

Correct reply

199 solutions
Top badges earned
Boost 250
Affirm 100
Give Back 25
View profile

Avatar
Boost 250
Employee
ramon_bisswanger
Employee

Likes

271 likes

Total Posts

397 posts

Correct reply

199 solutions
Top badges earned
Boost 250
Affirm 100
Give Back 25
View profile
ramon_bisswanger
Employee

24-06-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

Answers (0)