I’m new in n8n and I’ve been playing with Webhook Node for the last few days. I got it working just right, but I wonder if is possible for Webhook to listen to other Http Methods such as, for example, PUT or DELETE. In my use case, I have to use a third party API (which I have no control) and methods GET, POST and HEAD are not enough.
Since Webhook node does not provide this out-of-the-box, I tried to implement my own Trigger Node following the Creating your first trigger node tutorial but I had no success. I tried to setup different http methods on the node description (code below) but it didn’t work. It seems n8n ignores http methods different from GET, POST or HEAD.
Could someone provide me any help on how to accomplish this? Or is it something not possible to implement in n8n?
Are methods other than GET, POST, HEAD supported recently?
In version 0.159.1 this is not yet included and on GitHub I have also seen only GET, POST and HEAD.
But I would also be very happy about the support of “all” HTTP methods - especially OPTIONS for CORS XHR requests. Then n8n can show its full power as an API server. So you always have to cobble together an API gateway/proxy.
If this feature would be integrated and the dynamic JWT validation for webhooks would be integrated as authentication type (KrakenD e.g. does this quite well), n8n would be the pure wonder weapon on a web server.
Ah and @BillAlex, also OPTIONS request is supported for the Webhook-Node but not the Wait-Node yet. So it can not be set on the Webhook-Node itself but n8n takes care of that automatically.