Questions tagged [rest]

The REST (Representational State Transfer) interface in provides access to lists and libraries as a relational data service. A core concept of any RESTful interface is the resource, and in SharePoint Foundation, lists and items are represented as HTTP resources that can be addressed by remote URLs.

REST APIs (which are a type of web API) involve requests and responses, not too unlike visiting a web page. You make a request to a resource stored on a server, and the server responds with the requested information. The protocol used to transport the data is HTTP. “REST” stands for representational state transfer.

You can read more about basic operations in sharepoint using REST, here.

source: SharePoint Foundation REST Interface

2330 questions
16
votes
4 answers

Updating Lookup Values with the REST API

Is it possible to update a List Item's Lookup Field Value via the Rest API? I can retrieve the field value if I use $select and $expand, but I can't find documentation anywhere that explains how to update it.
Omar Stewey
  • 1,170
  • 1
  • 7
  • 16
14
votes
4 answers

How can I query for "AssignedTo = [ME]" using REST?

It is quite common to use "Assigned To = [Me]" in SharePoint views to list the tasks / items which are assigned to the current user. This of course includes both the items which are directly assigned to the current user, as well as those items which…
Martin Hatch
  • 1,303
  • 3
  • 13
  • 26
14
votes
2 answers

Get all Files and Folders in one call

I want to get all the files and folders contained inside a SharePoint folder in one rest API call. We have the below API to get all the folders inside a folder /_api/Web/GetFolderByServerRelativeUrl()/Folders We have…
jkr
  • 403
  • 1
  • 6
  • 19
10
votes
3 answers

Setting a file's Author/Editor through a REST API

I'm trying to alter a SharePoint Online file's 'Author' and 'Editor' through the REST API. I have first made sure to set the list fields 'Created By' and 'Modified By' property ReadOnlyField = false. I'm trying any REST API I can get my hands…
dtheodor
  • 101
  • 1
  • 6
9
votes
2 answers

How to get the Display Form URL, using REST

I need to get the display form of a list item using REST, I tried EncodedAbsoluteUrl and FileReaf, but none of them works from a SharePoint hosted App. FileReaf its just a relative url to the List, not even the list item, and EncodedAbsoluteUrl puts…
Luis Valencia
  • 5,201
  • 22
  • 118
  • 219
7
votes
6 answers

Testing REST API in SharePoint 2013

I'm new to SharePoint 2013 and I'm looking to use REST to do some api calls to my other web sites. I just want to see how to check and see the following items: If the REST service is enabled on the SharePoint server How to test the service to see…
David
  • 71
  • 1
  • 2
6
votes
2 answers

Call entire User Information List from REST api

I'm using a REST api to get data from the User Information List using https://servername/sitename/_api/Web/SiteUserInfoList/items This works great but the list stops after 121 entries - ending with a line such as
Maureen
  • 697
  • 1
  • 5
  • 23
6
votes
1 answer

Get last created item from SharePoint List using REST

I want to fetch ID and Title of last created item from SharePoint list using REST. I am using below url but it gives me wrong item, there are more than 10k items in the…
SBP
  • 337
  • 6
  • 16
4
votes
1 answer

Authenticate external systems against SharePoint REST services

I want to make the SharePoint(on prem) REST services available for a number of other applications. The other applications are built on different platforms, Microsoft, Java, etc. Applications should be able to update a list with new items(sounds…
Ehjalmar
  • 63
  • 1
  • 6
4
votes
1 answer

I cannot get "orderby" to work in SPS 2010 listdata.svc REST query

I can get the return list from this query, but if I add the orderby syntax, it just ignores it (no error, just doesn't sort the return set). http:///_vti_bin/listdata.svc/Products?$filter=DeliveryFormat eq true&$orderby=Title desc
April Drake
  • 1,095
  • 6
  • 32
  • 62
4
votes
1 answer

What does ViewsLifetime mean?

I want to show hit number for a page. I found Viewslifetime. I am sorting this Descending. So what does ViewsLifeTime means?
f_gulay
  • 641
  • 8
  • 31
4
votes
3 answers

Paging files using REST api

Can't seem to get paging working using the 2013 syntax: _api/web/GetFolderByServerRelativeUrl('/sites/Test1/Documents')/Files?$skiptoken=Paged=TRUE&p_ID=5&$top=1 The top parameter is working but not the skiptoken.
Lior Gal
  • 95
  • 2
  • 5
4
votes
1 answer

The field or property does not exist in REST

I am trying to query a list with lookup column to another list, basically I have sub announcements, and announcements, I want to get all sub announcements of particular announcement, so my query looks like this:…
Natalie
  • 285
  • 2
  • 4
4
votes
1 answer

Fiddler 401 error /_api/web

I am requesting this url with fiddler: http://sitecollectionUrl/_api/web With the header of: Accept: application/json;odata=verbose But I am getting 401 error code when doing so. I am on SharePoint Server 2013.
Brittany Rutherford
  • 878
  • 2
  • 16
  • 35
4
votes
2 answers

Postman Rest Call to _api/contextinfo failing

So I have been having this issue for awhile and im not sure what has changed. I used to be able to get the form digest value from hitting the /_api/contextinfo endpoint using a post call after signing into Sharepoint with the postman chrome…
McFrank
  • 257
  • 1
  • 3
  • 13
1
2 3 4 5 6