I am trying to get use the REST API to develop a custom promoted link type of library. I am the following end-point but can't seem to find the URL of the library:

_api/Web/Lists $select=Title,Description,
Created&$filter=BaseTemplate eq 101 and hidden eq false

I also tried using list.RootFolder.ServerRelativeUrl but I am getting an error. Am I suppose include any reference/script?

  • Are trying to GET library? Or creating an item in library? May 27 '17 at 0:25
  • all the libraries in the site May 27 '17 at 0:26

_api/web/lists?$select=Title,ServerRelativeUrl&$filter=BaseTemplate eq 101 and hidden eq false&$expand=RootFolder this works for me it gets all lists and server relative URL according to filters applied.

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.