Questions tagged [sharepoint-rest-api]

Using the Representational State Transfer (REST) interface provided by SharePoint

You can perform basic create, read, update, and delete (CRUD) operations by using the Representational State Transfer (REST) interface provided by SharePoint.

The REST interface exposes all of the SharePoint entities and operations that are available in the other SharePoint client APIs. One advantage of using REST is that you don't have to add references to any SharePoint libraries or client assemblies. Instead, you make HTTP requests to the appropriate endpoints to retrieve or update SharePoint entities, such as webs, lists, and list items.

1759 questions
7
votes
2 answers

How to set and get people picker fields of a list using REST API?

How to set and get people picker fields of a list using REST API
Hari babu
  • 71
  • 1
  • 1
  • 2
3
votes
1 answer

Getting the file details from _api/web/lists

I am using the following url to get a file based on the ID in the list: https:///_api/web/lists/getbyTitle('')/items(itemId)/ I am getting data back, but I need the properties of this item that are returned from a search, especially…
john
  • 235
  • 2
  • 12
3
votes
1 answer

SharePoint REST API filter based on Today's date only and not time. (Similar to IncludeTimeValue=False in CAML query)

I am trying to get data from SharePoint list with REST API that are created today only. var listName = "Carousel%20News"; var today = new Date().toISOString(); Here is my REST URL : _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('"…
Rohit Waghela
  • 2,910
  • 2
  • 16
  • 31
3
votes
2 answers

How to retrieve a Sharepoint list item with Rest api and show it in a new div

this is the first time I write in this forum so please tell me if I do something wrong. I can not get this to work, does anyone know what is wrong in the code below. Thanks/ $(document).ready(function(){ $( ".mainSection" ).before( "
lenic
  • 31
  • 1
  • 3
2
votes
1 answer

SharePoint REST API - Create lookup column with additional fields

I am trying to create a lookup column using the SharePoint REST API but can't figure out a way to pull the additional columns from the source list. I am using SP.FieldCreationInformation to do this. Code sample below. Is there any way to pull the…
Mark
  • 23
  • 3
2
votes
1 answer

Permissions for Sharepoint REST Search API (App-only)

When trying to access the search endpoint (https://example.sharepoint.com/_api/search/query) I always manage to bump into exceptions. I can't seem to find any reference to what is the correct App permissions XML that I should use for the App…
Paul0PT
  • 25
  • 1
  • 5
2
votes
0 answers

How to receive error description of invalid REST call in required language?

If my REST call to SharePoint server is invalid it returns error information with code and description, but always for xml:lang="en-US" language. For example:
23W
  • 185
  • 1
  • 10
2
votes
0 answers

What permissions do I need to get the request digest of a SharePoint site using SharePoint's REST API?

What permissions do I need to get the request digest of a SharePoint site using SharePoint's REST API? If I have view only access to the site but I have contribute access to a list on the site can I still get the request digest?
Ozzy
  • 21
  • 1
2
votes
1 answer

Accessing SharePoint site list from Angular client

If I go to Microsoft's Graph Explorer and use a URL like: https://graph.microsoft.com/beta/sites/4development106.sharepoint.com:/sites/DBSchenker:/lists/OEC_Docs/items I can see my request succeeds. Now if I use the Angular app from GitHub, and the…
Vik
  • 183
  • 1
  • 12
2
votes
3 answers

Search multiple lists using rest API with HTTPRequest and problem with number of results returned

Can anyone point me to an example or share some code on how to search multiple sites libraries with a single API Rest call? For example, I have a side called Document Archive and in that archive I have two document lists called Archive1 and…
john
  • 235
  • 2
  • 12
2
votes
0 answers

sharepoint file download link using rest api

I am doing Salesforce integration with SharePoint using OAuth 'client_credential' method. I am able to fetch file content and but unable to render that content as a word or pdf.or image file. Is there any URL which I can hit and it download file…
gangparia
  • 21
  • 1
2
votes
2 answers

Rest api error when trying to insert 4000 items

I am trying to insert 4000 items to the list , after inserting 1500 (around) following error occurred (forbidden 403).