Skip to content
Discussion options

You must be logged in to vote

Hello @paulschmeida thanks for using the SDK and for asking this.

To create an upload session, we use the CreateUploadSessionPostRequestBody
It takes DriveItemUploadableProperties

Examples:

frommsgraph.generated.drives.item.items.item.create_upload_session.create_upload_session_post_request_bodyimportCreateUploadSessionPostRequestBodyfrommsgraph.generated.models.drive_item_uploadable_propertiesimportDriveItemUploadablePropertiesdestination_path="my_docs/test_upload_file.txt"file_path="C:/Users/<path-to>/Project_workbook.xlsx"asyncdefupload_file():
uploadable_properties=DriveItemUploadableProperties(
additional_data={'@microsoft.graph.conflictBehavior': 'repl…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rubyff
Comment options

@InterStella0
Comment options

@Kallepan
Comment options

Answer selected byshemogumbe
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentationImprovements or additions to documentation
5 participants
@paulschmeida@shemogumbe@InterStella0@Kallepan@rubyff
Converted from issue

This discussion was converted from issue #610 on August 26, 2024 14:20.