Charly López
Charly López2w ago

Unable to append response headers in trigger "onExecutionEnd" function

I have created a trigger where I modify the flow output, but I'm unable to modify response headers. It seems that "res" object doesn't exist. Any clue?
No description
4 Replies
AI Support
AI Support2w ago
Processing...
🤖 Calibrating response parameters. 🎛️ this might take a couple of minutes... beep boop
AI Support
AI Support2w ago
🤖 AI Response
To modify response headers in BuildShip when working with REST API triggers, you should use the Return Node at the end of your workflow. In the Return Node, configure the HTTP response by specifying the status code, headers, and body. Custom headers are added in the "Headers" field as a JSON object, such as:
{
"Content-Type": "application/json",
"X-Custom-Header": "my-value"
}
{
"Content-Type": "application/json",
"X-Custom-Header": "my-value"
}
This approach allows you to set any required HTTP response headers for your API endpoint. For further details, refer to the REST API documentation and workflow examples, which outline how to use the Return Node for customizing responses. 🔗 References: 1. https://support.buildship.com/m/1201524938062975007 2. https://support.buildship.com/m/1369745528904093787 3. https://support.buildship.com/m/1242254351787888680 4. https://support.buildship.com/m/1275761048925765664 5. https://www.cometapi.com/how-to-use-buildship-with-cometapi-integration/ 6. https://buildship.com/blog/secure-api-point-with-low-code 7. https://www.youtube.com/watch?v=mmihZ-L-Yxg 8. https://support.buildship.com/m/1194199388902404246 9. https://www.youtube.com/watch?v=RVwM-8gVakg 10. https://support.buildship.com/m/1402157128872890481
BuildShip AI Support
Charly López
Charly LópezOP2w ago
Not exactly what I am looking for. I need to modify the response headers inside the trigger
Gaurav Chadha
Gaurav Chadha2w ago
Hi @Charly López could you please share your workflow via in-app support, I can take a look and help you with the custom configuration of trigger. The outpu of the trigger has a separte tab which you can configure. For updating request header within the onExecution you can pass request instead of req. You can share it via in-app support form, so we can support you better and much faster.

Did you find this page helpful?