[UP] api_manager ~ def update_call
This commit is contained in:
parent
4ec0cde089
commit
7888e53b20
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ class CallerManagerClient:
|
||||||
return Call(**response)
|
return Call(**response)
|
||||||
|
|
||||||
async def update_call(self, call_id: int, call: CallIn) -> Call:
|
async def update_call(self, call_id: int, call: CallIn) -> Call:
|
||||||
response = await self._request('PATCH', f'/calls/{call_id}', json=call.model_dump(exclude_none=True))
|
response = await self._request('PATCH', f'/calls/{call_id}', json=call.model_dump(exclude_unset=True))
|
||||||
return Call(**response)
|
return Call(**response)
|
||||||
|
|
||||||
async def get_call_dialog(self, call_id: int) -> CallDialog:
|
async def get_call_dialog(self, call_id: int) -> CallDialog:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue