I am building an API call and I need to use POST. I decided to use 'Platform.Function.HTTPPost'. However, my cloudpage has 'internal server error' when I run the code.
var token = functionWhichRetrievesBearerToken()
var journeyId = "X"
var journeyVersion = 1
var apiRoute = "RESTBaseURI/interaction/v1/interactions/stop/" + journeyId + "?versionNumber=" + journeyVersion
var contentType = "application/json";
var content = ""
var post = Platform.Function.HTTPPost(apiRoute, contentType, content, ["Authorization"], [token]);
Do you know what can cause the issue?