Skip to content

How to create an upload session? #610

@paulschmeida

Description

@paulschmeida

Based on the suggestion in #40, I've tried to create an upload session like this:

async def create_upload_session():   
 resp = await client.drives.by_drive_id('driveId').items.by_drive_item_id('root:/{item-path}:').create_upload_session().post()
asyncio.run(create_upload_session())

but I get this: TypeError: 'CreateUploadSessionRequestBuilder' object is not callable

so I've changed it to:

upload_session = await client.drives.by_drive_id(rds_drive_id).items.by_drive_item_id(f"root:{destination_full_path}:").create_upload_session.post()

but then I get TypeError: body cannot be null.

Can you provide an example on how to properly create an upload session?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions