How to create an empty folder in sharepoint via curl request in bash ?

Rashid, Mubashir 0 Reputation points
2024-04-21T06:34:52.34+00:00

How to create an empty folder in sharepoint via curl request in bash script? I am able to upload files via sharepoint API request in bash script but I am getting UnAuthorized Access exception while using same access token in curl request.

Any leads would be highly appreciable?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,682 questions
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 31,606 Reputation points Microsoft Vendor
    2024-04-22T02:38:34.5933333+00:00

    Hi @Rashid, Mubashir,

    Per my research, you might using edit permission in the request. The edit includes permissions that enable users to add, edit, and delete lists; can view, add, update, and delete list items and documents. So you could upload files to sharepoint but if you want to create a new folder, you will get UnAuthorized error. To create a new folder, you will need Contribute permission level at least.

    Please refer to following document

    https://learn.microsoft.com/en-us/sharepoint/sites/determine-permission-levels-and-groups-in-sharepoint-server


    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.