POST Request in Application Integration API Call - Body Formatting Error

Hi Fellow Application Integration Users,

For my HubSpot connection I want to sent a POST API call, with a json body. This works perfectly fine in Postman, but Application Integration seems to have some trouble.

For the body, I pass a json variable, but when making the API call, I get an unsupported media type error: It doesn't except a text file. It doesn't matter how I pass the json as the body (as a json variable, an json input variable, a string containing a json...), it seems that Application Integration is passing a text file to my endpoint.

How can I solve this?

Many thanks!

1 1 43
1 REPLY 1

I found the solution!

Add in the Standard Header: 'content-type' as key and 'application/json' as value (just like in the hidden fields when doing a POST call in Postman).