From 7035445d6a8192d7e298d507a8cba07fe8198f95 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fabian=20Kr=C3=BCger?=
 <56278322+fabapp2@users.noreply.github.com>
Date: Wed, 8 Jan 2025 05:13:24 +0100
Subject: [PATCH] Documentation: Add hint to set Content-Length header for post
 document (#8639)

---
 docs/api.md | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docs/api.md b/docs/api.md
index 8b755b11d..49e63c04b 100644
--- a/docs/api.md
+++ b/docs/api.md
@@ -365,6 +365,10 @@ The endpoint supports the following optional form fields:
 -   `custom_fields`: An array of custom field ids to assign (with an empty
     value) to the document.
 
+!!! note
+
+    Sending a `Content-Length` header with correct size is mandatory.
+
 The endpoint will immediately return HTTP 200 if the document consumption
 process was started successfully, with the UUID of the consumption task
 as the data. No additional status information about the consumption process