diff --git a/pyDataverse/api.py b/pyDataverse/api.py index a846a4e..b364847 100644 --- a/pyDataverse/api.py +++ b/pyDataverse/api.py @@ -260,16 +260,15 @@ def post_request( return self._sync_request( method=httpx.post, url=url, - json=data, headers=headers, params=params, files=files, + **request_params, ) else: return self._async_request( method=self.client.post, url=url, - json=data, headers=headers, params=params, files=files,