Share via

Sharepoint Document library - Cannot edit/update folder properties via the MS API

Anonymous
2024-02-15T23:40:26.6866667+00:00

I am trying to create folder in Sharepoint, via the MS API, and then add folder properties. I have no issues creating the folder but can't figure out how to add the properties to the new created folder. Hoping someone can point me in the right direction.

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows

2 answers

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,496 Reputation points Microsoft External Staff
    2024-03-01T01:14:49.4533333+00:00

    Hi @Sherry Friesen,

    I'm glad to hear you solve the problem ,if you have any issue about SharePoint, you are welcome to raise a ticket in this forum.

    By the way, since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others." and according to the scenario introduced here: Answering your own questions on Microsoft Q&A, I would make a brief summary of this thread:

    [Sharepoint Document library - Cannot edit/update folder properties via the MS API]

    Issue Symptom:

    Could create a folder in graph but unable to add the properties to the new created folder

    Solution:

    It's a permssison issue. We need at least Sites.ReadWrite.All permission to update the folder properties.


    You could click the "Accept Answer" button for this summary to close this thread, and this can make it easier for other community member's to see the useful information when reading this thread. Thanks for your understanding!

    Was this answer helpful?

    0 comments No comments

  2. RaytheonXie_MSFT 40,496 Reputation points Microsoft External Staff
    2024-02-19T02:38:35.7566667+00:00

    Hi @Sherry Friesen, Per my test, you could use PATCH /sites/{site-id}/drive/items/{item-id} to update properties. Please refer to following document https://learn.microsoft.com/en-us/graph/api/driveitem-update?view=graph-rest-1.0&tabs=http

    ---If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

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