I was unable to get a response other than a status code 400 with a large response chunk that did not tell me that it was missing the content.length in the header until I got some help (from @joritochip using Fetch where as I was using the http library, both of us running on Node V.18.12)
Could you elaborate a bit more on what you mean it was missing content.length? Even then, it’s not a required parameter thus looking past it anyways. The two content variables are the ones required following the documentation on the API. Here’s how I sent a POST utilizing Axios.
The set entry endpoint will return a 400 Bad Request if you do not include the Content-Length header, even though it is not currently documented as being required.
The axios package automatically includes the Content-Length header if you do not pass one yourself, that is why it works for you- however, other methods of making requests such as using fetch do not do this, meaning you need to include the header yourself.
Hi there, thanks for reporting. I’ve added a couple notes here and here about required headers that hopefully give a bit more guidance around why you might get a 400. Thanks again!