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.

learn more… | top users | synonyms (1)

1
vote
1answer
470 views

SharePoint 2013 Rest API OData Query

I am calling rest uri from jQuery ajax with filter string comparison startswith as below ...
0
votes
2answers
52 views

Problems while Accessing SharePoint List items in SharePoint 2013 using REST API in NAPA tool

I am trying to access the list item using an APP in my office 365 share point hosted trial environment.It seems like the call REST call is failing, the alert in error function is getting executed. ...
2
votes
2answers
25 views

How to create a folder in Sharepoint using Java and RESTFul API?

This is my Sharepoint site http://sp2k13/sites/ifsp/ and I would like to create a folder using Sharepoint RESTFul API with Java. I have already gone through Working with folders and files with REST ...
3
votes
1answer
506 views

How to add items to a document library when uploading a file using Rest in SP 2013?

I am trying to add file to document library by using REST IN SP 2013 APP MODEL. This is my code I can upload file to document library but I can't add items value to that document library in fields ...
1
vote
1answer
459 views

SharePoint Rest Api Filter not working and restrict to a site collection

The rest query is as follows, I want to get most viewed pages. I have used ViewsLifeTime property. This query returns some pages (unwanted) which their ViewsLifeTime is null. ...
0
votes
1answer
407 views

SharePoint 2013 REST API: how to get or set document fields

I want to get and also set document properties defined in a content type via a Rest call in either and app or a workflow Activity. If you fire up Google Postman or Advanced REST Api client you can ...
2
votes
2answers
616 views

Upload files to SharePoint Online using REST API

I'm trying to develop a console application which will upload files from the users client PC to a SharePoint Online site. I've written a version that used CSOM, but the file size is limited to 1.5Mb, ...
0
votes
1answer
16 views

REST to get list item by Id

I am always comfortable using JSOM, and I have used less of REST calls to access lists and its Items. But now I have a requirement to use only REST to get item by its ID. Can any one help with a ...
0
votes
3answers
27 views

Bringing back fields by internal name in SharePoint REST

Let's say I have the query: http://thisbox/_api/lists/getbytitle('ThisList')/items?$select=* But instead of "*" for selecting fields, I have a list of Field Internal Names and/or GUID's. I'd like ...
1
vote
1answer
561 views

REST API In SharePoint 2013 Uploading and Setting a Property

I am currently in the process of trying to upload a file from using SharePoint 2013 Restful Service as well as setting the fields in the same document library at the same time. I have had success ...
1
vote
1answer
604 views

Clear all values in a multi-value lookup, via REST, SP 2010

Conditions: SP 2010, html/javascript, using REST to read/write to various lists. Im using a jquery multiselect plugin to set a multi-value lookup column. I need the selecting Groups of items, easy ...
0
votes
1answer
15 views

Filtering a Lookup field using REST not working in Sharepoint 2010

I'm trying to filter a column of type lookup from a list using this method. /_vti_bin/ListData.svc/Collections()?$expand=Departments&$filter=Departments/Title eq 'Sales' And its outputting the ...
0
votes
0answers
14 views

REST calls between applications

I have a series of SharePoint applications, one being our Intranet site and one being a system for serviceinformation on our IT-systems (itstatus). I really want to make a section of out intranet ...
5
votes
3answers
5k views

REST API filter by start and end dates using 'today'

I'm new to filtering dates with REST in SP but am trying to do something like below but am not sure how to get today's date in as a variable into the request. I don't think I'm too far off so any help ...
0
votes
1answer
20 views

Get image from SharePoint by URL

I try to get an Image from SharePoint by using JavaScript code. I have the complete URL of the image which is stored in a SharePoint Assets Library. My app is SharePoint hosted. This code does not ...
0
votes
1answer
15 views

Cannot find resource for the request $batch Sharepoint server 2013

When i try to execute sample batch code in Sharepoint server 2013 i'm getting the error 'Cannot find resource for the request $batch' Int16 listRetrievalCount = 0; if (IsPostBack) { ...
2
votes
1answer
28 views

Get url of document library from REST call

I am working with O365 SharePoint site where I need to get the name and URL for the document libraries in a site collection. I have made a rest call for it as: https://site/_api/web/lists and select ...
1
vote
0answers
5 views

Apps Permission Request XML for Workflow, and Rest Workflow Help Please

The documentation on msdn is pure junk if you ask me, for setting up App permissions in a Workflow. Here is the link ...
0
votes
1answer
353 views

RoleAssignments with REST API and oAuth

I'm attempting to use the REST API to migrate files from our users' personal sharepoint sites (e.g. http://organization-my.sharepoint.com/personal/bob@organization.onmicrosoft.com). The account which ...
2
votes
1answer
92 views

How do I access an image library from my client web part via the REST API?

I am busy implementing a small web part to rotate through a list of banner images. The images must come from an Office 365 SharePoint Online list. My first choice to implement this list is by using ...
4
votes
0answers
74 views

How to access a custom field of a list using REST

I'm trying to get information from a list in a custom SPField called "My Field" with the internal name "MyField" using this JavaScript code: $.ajax({ url: ...
0
votes
0answers
6 views

How do I set up SharePoint Designer so I can edit list item permissions using a workflow

I need to be able to change list item permissions within a workflow. I have Workflow platform 2010 but the Impersonation step is greyed out. I have Workflow platform 2013, but I dont know where or ...
0
votes
0answers
12 views

SharePoint 2013 Online Permission to User Profiles REST API

I have a SharePoint application which I've built using javascript on a single page (not using an app). I have to make calls to the user profile service to retrieve properties like Manager and Business ...
2
votes
2answers
783 views

SharePoint 2013 Http Web Service Action

I have created a basic SharePoint 2013 workflow with the intent to call the Rest API to retrieve the users from a SharePoint Group. To do this I am attempting to use the HTTP Web Service action ...
1
vote
1answer
30 views

Get the permission list for a group using jQuery AJAX requests REST API

How can i get the group permissions for a list using an AJAX request with the REST API? I could add or remove permissions for the group but i want to know the actual permissions of the group over the ...
0
votes
1answer
18 views

Get link to image from asset library

I try to access an asset library in a SharePoint-Hosted App via the REST API. The app is hosted in SharePoint Online. I get the properties of the images (e.g. the title etc). But I do not find a ...
3
votes
1answer
2k views

The field 'EventDate' of type 'DateTime' cannot be used in the query filter expression

I am trying to filter standard Calendar events via SharePoint web api and my query looks like this: /_api/web/lists/getbytitle('calendar')/items?$filter=( EventDate ge ...
3
votes
1answer
62 views

Using NOT on REST date query

I am able to filter for items created on a specific date with the following query (using today [03-06-2015] as an example): "$filter=Created ge datetime'2015-03-06T05:00:00.000Z' and Created lt ...
5
votes
2answers
153 views

Consume SharePoint online lists using REST API (in R)

I would like to be able to query lists that are on my sharepoint online site via R. I'm having difficulties ascertaining the right method for authenticating my requests. These requests would be ...
1
vote
2answers
183 views

How to add an AD group to a SP group using REST api?

I managed to write a code that adds a user to SP group using REST and it just posts this data: { '__metadata': { 'type': 'SP.User' }, 'LoginName':'i:0#.w|domain\\user' } to here: ...
2
votes
2answers
79 views

Add AD group to SharePoint Online using REST API

Is it possible to add an AD group into SharePoint. I've created a user group in the Office 365 portal, which appears to be stored in AD. Is there a way of searching for this AD group and adding it. ...
0
votes
3answers
47 views

Not able to access sharepoint list using rest api

This is my code function getListItem(url, listname, id, complete, failure) { // Getting our list items $.ajax({ url: url + "/_api/lists/getbytitle('"+ listname +"')/items", ...
1
vote
1answer
24 views

ItemAdded not firing with REST

I have an ItemAdded on a list which creates a Document Library for each item added, and updates some fields of the item. It fires perfectly when items are entered manually. It doesn't fire when ...
1
vote
2answers
558 views

Get private folders of all users in OneDrive for Business REST API

I want to get all private folders(and files) for all users in one drive for business using REST API. I got access token for https://mydomain-my.sharepoint.com using administrator account. Now I am ...
0
votes
1answer
11 views

Create an item with REST API from workflow - Sharepoint 2013

The main idea of this is to create an item from workflow in another list which is located on different site collection. So i though if its possible to create an item in list with REST API trough the ...
0
votes
1answer
21 views

Upload new image in asset library in SharePoint Online

I am developing a SharePoint Hosted app for SharePoint Online. Now I wondered if there is a way to upload a new image file to the central asset library. I found several code snippets for C#, but my ...
1
vote
2answers
60 views

Expand a multi value field in REST API

I have a Sharepoint list that has a multi value field which stores Person or Group. In the GET call to the Sharepoint list, I get the following response. Collaborators is the name of the field in ...
2
votes
2answers
18 views

Search REST API with the User Profile Service and Hyphenated Last Names

Using the Search REST API to get all users where their last name begins with a certain letter to make a custom user directory. For example, I hoped that the following would return all users that have ...
0
votes
0answers
15 views

Server error in Sharepoint newsfeed 2013 when uploading image

Whenever i upload any image in share point 2013 newsfeed , the rest api for getting newsfeed(http://siteurl/_api/social.feed/my/news), it returns me "Request Error". Can anyone help ?
1
vote
0answers
27 views

Download SharePoint folder using Python

I am using requests library in python to get pages from SharePoint 2010 and it's working fine, now I need to walk through a SharePoint directory and download all files from there to my local machine. ...
0
votes
2answers
55 views

Passing the Sharepoint Logged in user credentials to a REST API Call

I am having issues passing the current logged in user's credentials in to a REST API call. Here is the scenario: I have a SP 2010 hosted site that has a web part that makes a REST API call to ...
1
vote
1answer
1k views

Sharepoint 2013 REST API - Shared Documents / Author Info In one Call?

We are in the process of integrating from Sharepoint 2007 to Sharepoint 2013. We have a java based application using Sharepoint 2007 SOAP based webservices. In Sharepoint 2013 we are using the REST ...
0
votes
2answers
26 views

Path to User photo by ID (URL)

I'm consume data by REST: spApp.controller('blogCtrl', function ($scope, $http) {$http( { method: "GET", url: ...
2
votes
4answers
4k views

Create list item in sharepoint list using REST API using C#

I have a requirement to create list item in a sharepoint online list using the REST API and c#. How to achieve this. Most of the article show using REST API in jquery and Javascript but I have a ...
1
vote
1answer
17 views

Retrieve non-system folders from RestApi given the folder's relative path

'YouDomainServer'/_api/Web/GetFolderByServerRelativeUrl('relativepath')/Folders This call returns the system folders like 'Forms' which are not generally visible to the user. How to exclude the ...
3
votes
2answers
130 views

REST $filter when comparing 2 date columns causes error <nativehr>0x80070057</nativehr><nativestack></nativestack>

I'm using the on prem SharePoint 2013 REST API and I'm getting an error when I try to compare two date fields. $filter=ExpectedDelivery gt NeededBy The above query works perfectly using ...
1
vote
0answers
22 views

Trouble with curl and rest

I'm having a problem using curl to pull a specific task from sharepoint 2010 enterpise. We use a very complicated extendscript to process images into archive locations and create web images. We ...
1
vote
1answer
26 views

SharePoint site accessed via AAM url causes 401 Unauthorized error

I have a internet mapping for a SharePoint site that works fine. However, the same site's WCF REST service causes a '401 Unauthorized' error when accessed via a coded functionality. The same code ...
1
vote
2answers
55 views

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 ...
0
votes
1answer
56 views

GetFileByServerRelativeUrl returns corrupt document

I'm trying to read a SharePoint document using GetFileByServerRelativeUrl. The code seems to work (it throws no exceptions). It's returning a byte array that should represent a Word document. (It's ...