none
Is it Possible to Upload and Download files under Document Set in SharePoint Online using Graph API RRS feed

All replies

  • Hi,

    Sample test demo for your reference.

    Get library drive id by below endpoint.

    https://graph.microsoft.com/v1.0/sites/siteid/drives

    Get document set id by below endpoint(test document set in root folder of library, for child folder/document set, it's similar, just need more similar requests).

    https://graph.microsoft.com/v1.0/sites/siteid/drives/library drive id/root/children
    Document set host in library->Folder->document set.

    https://graph.microsoft.com/v1.0/sites/site id/drives/library drive id/items/folder item id/children

    Based on document set item id, upload file.

    https://graph.microsoft.com/v1.0/sites/site id/drives/library drive id/items/document set item id:/test.txt:/content

    Result:

    Best Regards,

    Lee


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Friday, November 29, 2019 7:11 AM