API Node Header
I have an endpoint that I must pass a header.
accept: Application/json.
I have not found a way to accomplish this yet. Without it Im afraid I will not be able to use Buildship
3 Replies
AI Support Bot Information
<@819257502801330196> you can react on the relevant answer (message) with a ✅ in this thread when you think it has been solved, by the bot or by a human!
Anyone can react on this message with a ❌ if the GPT bot is unhelpful or hallucinating answers.
Please note: Team members will review and answer the questions on best efforts basis.
AI Response
To pass headers in an API request using BuildShip, you can utilize the REST API Call node, which allows you to set headers. Here's how you can include the "Accept: Application/json" header:
1. Add the REST API Call Node: This node is used to make HTTP requests.
2. Set the Request URL: Enter the endpoint URL you want to call.
3. Set the Request Method: Choose the appropriate HTTP method (GET, POST, etc.).
4. Add Headers: In the headers section, you can define your headers as key-value pairs. For example, you would add a header with the key
Accept
and the value application/json
.
5. Configure Other Options: Optionally, you can set query parameters, request body, etc., depending on your endpoint's requirements.
6. Test the Request: Use the workflow testing feature to ensure your request is configured correctly and is functioning as expected.
If you continue to face difficulties, please ensure you are entering headers correctly, considering factors such as case sensitivity and formatting. If further issues arise, you can reach out to BuildShip support for personalized assistance .
BuildShip AI Support
I am still unable to identify which field are the headers. I even tried adding the header to the code itself.
I got this figured out thanks