How do i create a Document Library using REST?
When i upload a file to document library, i use this url:
http://industrial-ex/sites/tifdemo/enovia/file.txt with a POST
What is the url for creating a new Document Library?
Thanks in advance.
How do i create a Document Library using REST?
When i upload a file to document library, i use this url:
http://industrial-ex/sites/tifdemo/enovia/file.txt with a POST
What is the url for creating a new Document Library?
Thanks in advance.
Working with lists and list items with REST
url: http://site url/_api/web/lists
method: POST
body: { '__metadata': { 'type': 'SP.List' }, 'AllowContentTypes': true, 'BaseTemplate': 100,
'ContentTypesEnabled': true, 'Description': 'My list description', 'Title': 'Test' }
Headers:
Authorization: "Bearer " + accessToken
X-RequestDigest: form digest value
accept: "application/json;odata=verbose"
content-type: "application/json;odata=verbose"
content-length:length of post body
Set the BaseTemplate property to 101 to create a document library.