Expand my Community achievements bar.

SOLVED

External API - Custom Payload body

Avatar

Level 1

Hello, good afternoon.

 

Here in our Company, we use Airship Urban to send Push messages.We are trying to integrate it to ACS using External API.

 

However, we can't customize the payload as expected by Airship Urban.

 

The log error: (400 - Bad Request)

 

mironrodrigo_0-1586903847232.png

 

 


So, can't we customize the payload message? This is this is expected by urban:

--request POST \
--header "Authorization: xxxxxxxx
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data-binary '{"audience": {"named_user": "xxxxxxx"}, "notification": {"alert": "Test"}, "device_types": ["android"]}' https://go.urbanairship.com/api/push

 

Thank you very much

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 2

External API activity will show the format of the request body JSON format that will be generated on the Inbound Mapping tab of the activity, under Post Body Template. This format is also shown in the documentation - https://docs.adobe.com/content/help/en/campaign-standard/using/managing-processes-and-data/data-mana...

 

The request body format is not customizable at this time. Hope this helps.

View solution in original post

2 Replies

Avatar

Level 2
Hi mironrodrigo , was it resolved?

Avatar

Correct answer by
Level 2

External API activity will show the format of the request body JSON format that will be generated on the Inbound Mapping tab of the activity, under Post Body Template. This format is also shown in the documentation - https://docs.adobe.com/content/help/en/campaign-standard/using/managing-processes-and-data/data-mana...

 

The request body format is not customizable at this time. Hope this helps.