File tree Expand file tree Collapse file tree
onedrive_personal_sdk/clients Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,14 +85,17 @@ async def download_drive_item(
8585
8686 async def update_drive_item (
8787 self , path_or_id : str , data : ItemUpdate
88- ) -> File | Folder :
88+ ) -> File | Folder | None :
8989 """Update items in a drive."""
90- response = await self ._request_json (
90+ response = await self ._request (
9191 HttpMethod .PATCH ,
9292 f"{ GRAPH_BASE_URL } /me/drive/items/{ path_or_id } " ,
9393 json = data .to_dict (),
9494 )
95- return self ._dict_to_item (response )
95+ if response .status == 204 :
96+ return None
97+ json = await response .json ()
98+ return self ._dict_to_item (json )
9699
97100 async def create_folder (
98101 self ,
Original file line number Diff line number Diff line change 11[project ]
22name = " onedrive-personal-sdk"
3- version = " 0.0.14 "
3+ version = " 0.0.15 "
44license = {text = " MIT" }
55description = " A package to interact with the Microsoft Graph API for personal OneDrives."
66readme = " README.md"
You can’t perform that action at this time.
0 commit comments