Overview
This node allows you to perform HTTP DELETE requests to the httpbin.org API. It is useful for testing, debugging, or demonstrating how your workflows interact with external APIs using the DELETE method. You can send data either as query parameters or as a JSON body, making it flexible for various scenarios where you need to simulate or test DELETE operations.
Practical examples:
- Testing how your workflow handles DELETE requests before integrating with a real API.
- Demonstrating the effect of sending different types of data (query vs. JSON) in a DELETE request.
- Debugging webhooks or integrations that require DELETE calls.
Properties
Name | Type | Meaning |
---|---|---|
Type of Data | options | Select whether to send data as Query Parameters or as a JSON Body. |
Query Parameters | fixedCollection | Key-value pairs to be sent as query parameters in the DELETE request. |
JSON Object | fixedCollection | Key-value pairs to be sent as properties in the JSON body of the DELETE request. |
- Type of Data: Determines if the data will be sent as query parameters (
Query
) or as a JSON object (JSON
). - Query Parameters: Used when "Type of Data" is set to
Query
. Each entry defines a key and value to be included in the URL's query string. - JSON Object: Used when "Type of Data" is set to
JSON
. Each entry defines a key and value to be included in the request body as JSON.
Output
The node outputs the response from httpbin.org in the json
field. The structure typically includes:
- Information about the request (such as headers, arguments, and data sent).
- The status of the operation.
- Any data returned by httpbin.org reflecting what was received.
Example output:
{
"args": { "key1": "value1" },
"data": "",
"files": {},
"form": {},
"headers": {
"Accept": "application/json",
"Content-Type": "application/json",
// ...other headers
},
"json": null,
"method": "DELETE",
"origin": "x.x.x.x",
"url": "https://httpbin.org/delete?key1=value1"
}
If binary data is ever returned, it would represent the raw response from the API, but this is uncommon for httpbin DELETE endpoints.
Dependencies
- No authentication is required for httpbin.org, but the node supports optional credentials configuration (
httpbinApi
) for demonstration purposes. - Requires internet access to reach https://httpbin.org.
Troubleshooting
Common issues:
- Invalid input format: Ensure that keys and values are provided for all query parameters or JSON properties.
- Network errors: If httpbin.org is unreachable, check your network connection or proxy settings.
- Unexpected output: Double-check that you selected the correct "Type of Data" and provided the corresponding fields.
Error messages:
- "Request failed with status code 4xx/5xx": Indicates an issue with the request or server. Check your input data and try again.
- "Cannot read property 'key' of undefined": Make sure all key-value pairs are properly filled out.
Links and References
- httpbin.org DELETE endpoint documentation
- n8n Documentation: HTTP Request Node (for general reference on HTTP requests in n8n)