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
2answers
76 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
32 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
18 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
46 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. ...
1
vote
2answers
110 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 ...
0
votes
2answers
37 views

Path to User photo by ID (URL)

I'm consume data by REST: spApp.controller('blogCtrl', function ($scope, $http) {$http( { method: "GET", url: ...
3
votes
4answers
3k 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
18 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
144 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
23 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
33 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
83 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
90 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 ...
1
vote
0answers
49 views

Invalid Audience Id - Office 365

I am trying to connect with office 365 without going through Azure, so I was able to get the access token by calling the following URL ...
1
vote
2answers
43 views

Adding a folder to a list using the REST API

I have a GenericList that accepts folders as elements. I know how to create those folders in Sharepoint's interface. I'd like to be able to generate them with a script, using the REST API. I know ...
1
vote
1answer
83 views

REST endpoint working in SharePoint online and not in on premise

/_api/web/lists/getbytitle('List')/items?$select=Id,AttachmentFiles&$expand=AttachmentFiles The above REST endpoint works in SharePoint online and we are able to fetch attachments but the same ...
1
vote
1answer
30 views

Is it possible to exclude certain user views from ViewsLifeTime?

I'm getting the most popular pages in our site collection using the search REST API: _api/search/query?querytext='ContentTypeId:0x010100C568*'&sortlist='ViewsLifeTime:descending' The problem is ...
0
votes
1answer
71 views

I want to get list of all site collection available on SharePoint Server 2013 using CSOM or REST API but not server object model

I am working on client application for which I don't want to use Server Object Model of SharePoint 2013. I am ready to go for anything other that SOM. I want to get a complete list of site ...
1
vote
0answers
34 views

Can't send Email: Error 500 or 403 when trying to use SP.Utilities.Utility.SendEmail

I am getting a Internal Server 500 error when trying to send an email using the SP.Utilities.Utility.SendEmail in my SharePoint Online App. It is worth noting that I am working from a custom .aspx ...
1
vote
1answer
46 views

Is it possible to get the most popular pages using REST?

I want to show a list on our homepage of the most popular pages in our site collection. Is there a way of accessing this information using REST?
0
votes
1answer
29 views

REST API get by author differences by platform

I find that when I want to retrieve custom list items by author (in this case, by the current user) I need to use a different query whether using SP2013 on premise or O365. I tried creating the same ...
0
votes
2answers
67 views

Create a document-libary with SharePoint rest api

Is it possible to create a document-library via SharePoint Rest API?
0
votes
1answer
33 views

http post with body content in Java [duplicate]

i have trying to create a document libary by using SharePoint rest api but how do i add the body content with the post in Java? body: { '__metadata': { 'type': 'SP.List' }, 'AllowContentTypes': ...
0
votes
1answer
49 views

REST API Social News Feed with Images throwing 400 error

Reading the news feed with the REST API _api/social.feed/my/news gives me text, but if an Image post is added, without text, I get a 400 error. If I added text, I am shown the text and get no error. ...
0
votes
0answers
18 views

How to make REST requests from javascript

I have a web site and I want to get a document library from sharepoint. I want to do this in javascript only. Do I need to get OAuth Access token? Is it possible to establish tokens without backend ...
0
votes
3answers
101 views

Download file using REST

I want to download a file using REST API. I have a file in a document library /folder. I want download that file, but with a different name. Edit 1 : Below is my code. i am able to download file on ...
1
vote
2answers
66 views

Get the list of all users from Sharepoint Online

I'm using CSOM .NET library to access Sharepoint data via ClientContext. Is there a way to get the list of all users (including users who don't belong to any group) from Sharepoint? If not, is there a ...
3
votes
2answers
197 views

Get the group of the current user using REST API

I'm trying to get the group of current user. By using this code: function checkGroup() { var group = ["D", "Sup", "A", "CP"]; for (var i = 0; i < group.length; i++) { if ...
3
votes
2answers
2k views

Access programmatically to SharePoint 2013 Online REST Web Services from Windows 8.1 Application

I have a problem in connecting to SharePoint online from the Windows 8.1 Application. My goal is quite simple: Connect to SharePoint Retrieve the List of Lists Get Items from a List I have tried ...
0
votes
2answers
44 views

filter list Items REST API

I have a lits sharepoint which have an user item.I need get the items filtering by user like this : http://win-f898lhd0rn9//_api/web/lists/getbytitle('BudgetConcerneLD')/items?$filter=IPS_Personne ...
0
votes
1answer
48 views

Authenticate user with FormDigest via CSOM/REST

Our SharePoint 2013 farm is using Windows Authentication and exposed to the Internet. We have a webparts contains javascript AJAX call to another server with a different hostname. Intranet: ...
-2
votes
1answer
54 views

Creating ListItems using REST

My task is to create list items using REST. I used this code $(document).ready(function () { createListItemWithDetails('TestList', 'http://sp20139:85', 'TestListRest', function (data) { ...
-1
votes
1answer
23 views

REST Data Souce not showing any data

I am trying to use a REST data source, by following this article. I create the data source, but when I insert it as a data view web part, nothing happens. If I enter just the path to the service in ...
0
votes
2answers
77 views

Accessing and updating sharepoint list using SOAP/REST

I have been searching and researching a problem I have been tasked with for a few days and figured now is the time to ask for help. I am a C# Application developer and have the following task. In my ...
2
votes
1answer
4k views

Properties when uploading Files using REST in SP 2013

After a lot of research I finally got uploads via REST working in SharePoint 2013. But I would like to provide additional properties to the Add Function like Title. This code works so far but the only ...
1
vote
1answer
46 views

How do I get the names of users when retrieving the list of tasks?

In a SharePoint Hosted App, with the following code, I can retrieve the list of tasks, every task containing, among others, the identifiers AssignedToId (an array of integers): ...
1
vote
1answer
22 views

Unable to grab value from REST request

I am trying to grab the Id of the last created item, but am unable to grab the value. The query is correct as I can see it in the object but I'm getting an invalid character error when trying to use ...
1
vote
3answers
97 views

Retrieving files from a document library using REST with a filter on a field

I have a standard document library with one added field StudyId (string). I can't figure out how to retrieve files using a filter on that field. I retrieve files as following: ...
1
vote
1answer
183 views

API calls limit for Office365 REST APIs (Sharepoint/OneDrive)

I want to know the limit for API calls per minute/hour for Office365 REST APIs (Sharepoint/OneDrive). Is there any documentation for it?
0
votes
1answer
53 views

Passing filter value to REST Query

I have a text box that I'm trying to take the value from and pass it into a REST query as a filter parameter when the button is clicked. If I hard code a value into the REST query it retrieves the ...
0
votes
1answer
55 views

SharePoint 2013 REST API error

I have this working properly on Office 365, but when I move it to our on-premise installation, I get an error. here is the code I'm trying to execute <script type="text/javascript" ...
0
votes
0answers
18 views

Workflow elevated permissions

I've been reading (and using) the actions mentioned in this article several times: Create a workflow with elevated permissions by using the SharePoint 2013 Workflow platform Now I need to do ...
0
votes
0answers
18 views

Events/Changelogs in the new Office365 Files API

I'd like to know if this new Office 365 API provides changelogs for diff events that occur on OneDrive for a tenant user like Share, Unshare, Create, Update, Delete events etc. Much appreciated!
0
votes
0answers
52 views

Cannot query SP.UserProfiles.PeopleManager from the App Web via REST

I'm testing REST results in the browser with mixed results. The following URL returns the expected result: ...
1
vote
1answer
333 views

Sharepoint REST API - Using caml query and select/expand to get lookup data

I have a Sharepoint app and I use a caml query to filter the data I get back: var caml = "<View><Query><Where><And><Contains><FieldRef Name='PublishingPageLayout' ...
0
votes
0answers
28 views

Access Token (Java) [duplicate]

How do you get Access Token using REST? I'm trying to upload a folder in my Document Library using REST but it requires a Access Token in the header. Here is the code: public void ...
1
vote
2answers
1k views

Change item permissions using 2013 workflow

I would like to create a 2013 workflow using Rest api call to break inheritance and change permissions on list items when they are created. This is in a Sharepoint Online environment. Have anyone ...
0
votes
0answers
20 views

Retrive data from a list name starts with 1 or more digit characters and choice field using listdata.svc

I am trying to retrieve data from SharePoint Document library using listdata.svc . My Document library name is "2015" and it have one choice field. When I browse using the URL ...
2
votes
2answers
58 views

Get file size with SharePoint 2010 REST call

Is there a way to get file size with SharePoint 2010 REST (via _vti_bin/ListData.svc) service? The same question about number of items in some folder. I don't see such fields in items corresponding to ...
1
vote
1answer
118 views

SharePoint 2010 REST Date/Time format

In SharePoint 2010 REST API when I call to _vti_bin/ListData.svc/Documents(38)/Created and get JSON response the date/time is returned as /Date(1421146908000)/ (I found some information about it but ...