diff --git a/pyproject.toml b/pyproject.toml index fdf0369..b0c5677 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "yandexapimanager" -version = "0.1.4-3" +version = "0.1.4-4" description = "" authors = [ {name = "Evgeny (Krymmy) Momotov",email = "evgeny.momotov@gmail.com"} diff --git a/src/YandexApiManager/api_manager.py b/src/YandexApiManager/api_manager.py index 953e81d..96bb05f 100644 --- a/src/YandexApiManager/api_manager.py +++ b/src/YandexApiManager/api_manager.py @@ -49,7 +49,7 @@ class YandexManagerClient: return access_response async def create_call(self, data: CallIn) -> Call | None: - response = await self._request('POST', '/calls/', data=data.model_dump()) + response = await self._request('POST', '/calls/', json=data.model_dump()) if not response: return None return Call(**response)