webapi download documents

Certified Senior Developer

Hello All,

Could you please help us to redirect the URL using Appian webapi.  Below is the sample code I used . Now the URL is displayed in the body because i mentioned in the body. I tried to mentioned in headers  but nothing happened. Also i didn't see any keywords apart from body,statuscode,headers in a!httpResponse. Requirement is to download the documents using URL .(documents URL's are dynamic so we are trying to use redirect here).

a!httpResponse(
status Code: 302,
body: {rule!example(fileName:concat(
"537",
"Customer "
"454",
".pdf"
))},
headers: {},
),

  Discussion posts and replies are publicly visible