I want to upload file to sharepoint site with graph api using java sdk

Ankush Kumar 0 Reputation points
2024-12-12T09:09:17.0166667+00:00

I want to upload file to sharepoint site with graph api using java sdk. why there is not documentation for the api? Need help

Microsoft Security Microsoft Graph
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-12-12T09:39:00.4433333+00:00

    Hello Ankush Kumar,

    Thank you for reaching out to Microsoft Support!

    For information about using the Graph SDK you can refer to this document:

    https://learn.microsoft.com/en-us/graph/sdks/sdks-overview

    The Graph API endpoint to upload the file is in this document:

    https://learn.microsoft.com/en-us/graph/api/driveitem-put-content?view=graph-rest-1.0&tabs=http

    The official Graph SDK code for uploading large files can be viewed in this document:

    https://learn.microsoft.com/en-us/graph/sdks/large-file-upload?tabs=java

    Code shared by other users:

    https://stackoverflow.com/questions/65676928/upload-file-to-microsoft-onedrive-using-graph-sdk-using-asp-net-core

    https://learn.microsoft.com/en-us/answers/questions/938993/have-to-upload-files-into-sharepoint-online-using

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.