Share via

Replace a file using Graph API

Anonymous
2024-03-07T16:18:17+00:00

Hello,

I am trying to replace a file in SPO using Postman and Graph API as follows:

and instead of replacing the file it marks with check-out even if the library is configured with Require documents to be checked out before they can be edited? = No

So we have to do another task to check in the file add a comment and in this way the file gets replaced.

This is not the way I want to replace a file.

Like this tutorial: https://learn.microsoft.com/en-us/graph/api/driveitem-update?view=graph-rest-1.0&tabs=http is telling us that it should automatically replace the existing file with the new one in one go. But unfortunately it doesn't like I said above.

I appreciate any help here.

Thank you.

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2024-03-07T17:48:25+00:00

    Dear Ciprian Oltean1

    Good day! Thank you for posting to Microsoft Community. We are happy to help you

    Regarding your query on Graph API. Please understand that this query is outside of our support boundaries. For you to be assisted properly, please reach out to Microsoft Graph - Microsoft Q&A; I am sure that our experts from that team can address your query effectively and accurately.  

    Thank you for your cooperation and understanding. Please do not hesitate to post your queries in Microsoft Community and we will always do our best to assist you!

    Sincerely,

    Tin | Microsoft Community Moderator

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-03-08T07:33:58+00:00

    Thank you Tin and sorry for asking in a wrong place.

    Was this answer helpful?

    0 comments No comments