diff --git a/cognite/client/_api/documents.py b/cognite/client/_api/documents.py index 92dc53c971..1c367c5c3f 100644 --- a/cognite/client/_api/documents.py +++ b/cognite/client/_api/documents.py @@ -491,7 +491,9 @@ def retrieve_content(self, id: int) -> bytes: >>> client = CogniteClient() >>> content = client.documents.retrieve_content(id=123) """ - response = self._do_request("GET", f"{self._RESOURCE_PATH}/{id}/content", accept="text/plain") + + body = {"id": id} + response = self._do_request("POST", f"{self._RESOURCE_PATH}/content", accept="text/plain", json=body) return response.content def retrieve_content_buffer(self, id: int, buffer: BinaryIO) -> None: