HTTP Node : DELETE Body

I’m trying to support deleting a device from a NoteHub fleet. The API calls for a HTTPS DELETE with a body.
Project API - Notehub API Reference

It doesn’t look like the HTTP Node supports a body when using DELETE Request Method. Is there an alternative?

TIL …

The HTTP/1.1 specification (RFC 7231) does not explicitly forbid or encourage sending a body with a DELETE request. However, it states that “A payload within a DELETE request message has no defined semantics.” This means that while a body can be included, servers are not required to understand or process it, and some existing implementations might even reject requests containing a body.

We will get that implemented for our next release in late October. FYI while you can pass a string template resolving to “DELETE” in the Request Method dropdown - which allows you to add a body in the node editor - we are stripping the body out when making the request from our node runners.

The best workaround I can offer until we implement this is to invoke an AWS Lambda function (or Azure, or GCP), passing in the needed values from the payload as parameters, and making the DELETE request from within the cloud function.

Update - we’re actually going to fast-track this change. Hopefully we will have it out later today. I will keep you posted.

There is no team better than the Losant team! Thanks Dylan.

I see I can add Body to DELETE now!!! Implementation worked flawlessly.

Thanks Team!

Yes, I meant to follow up yesterday afternoon. Sorry about that.

Anyways, glad we could get this out so quickly for you.