0

When I am trying to create Document library using below endpoint its creating folder inside existing document library.

POST /drives/{drive-id}/root/children

I need to create Document Library at site level. e.g. at https://domain.sharepoint.com/sites/<site_name> through graph APIs

Any Inputs?

user1398291
  • 183
  • 1
  • 2
  • 15

1 Answers1

0

You can use following endpoint to create a list (Document library):

Example:

enter image description here

BR

Baker_Kong
  • 1,739
  • 1
  • 4
  • 9
  • Thank you for your reply @baker_kong_msft. I am getting **Access denied** error. I `{ "error": { "code": "accessDenied", "message": "Access denied", "innerError": { "date": "2020-08-27T06:15:09", "request-id": "5b6ede25-ceb9-4f81-b561-***" } } }` I have below permissions added: `"Sites.Read.All", "Sites.ReadWrite.All", "Files.ReadWrite.All", "Files.Read.All" ` – user1398291 Aug 27 '20 at 06:18
  • How about this permission? http://joxi.ru/VrwBdlPH89wLOA – Baker_Kong Aug 27 '20 at 09:33