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
10k views

SharePoint 2013 REST-API: Reliable way to retrieve all field values of a list item?

I am trying to retrieve all field values of a specific list item via the REST-API of SharePoint 2013. The values will be used for further processing. The goal is to retrieve all field values ...
0
votes
1answer
2k 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 ...
3
votes
2answers
5k views

How to get PublishingRollupImage for page in Page library with REST and jQuery?

I have a repeater in a user control and I databind it in code behind like so: var items = list.Items.Cast<SPListItem>() .OrderByDescending(a => a[...
0
votes
2answers
35 views

Pull data from particular subsite and show on root site

SharePoint online : I want to develop a portal where content will be in subsite (sub sites will be created based on country name). Now depending on the current logged in user country, data should be ...
0
votes
1answer
26 views

Need help with REST Query against Task List

Our O365 Site has come crawling to a snail's pace, after speaking with Microsoft Support they have told me the OOBE Web Parts are causing the speed issue and that I need to use CSOM or REST Queries to ...
3
votes
3answers
1k views

Get users Manager using Client API

url: appweburl + "_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountName=@v,propertyName='Manager')?@v='" + seluser + "'", For my SP 2013 app I need to get a users manager and I'm ...
1
vote
2answers
20 views

How to inherit permissions in SharePoint 2013 through Rest Api?

In Sharepoint 2013, there is a rest API to break permissions and add permissions to the object, but is there an rest Api to inherit permissions on the object again? Thanks
1
vote
1answer
20 views

User Permissions Binary Representation Map

I'm trying to get user permissions using the REST API. At the moment, I can call an endpoint like this: _api/web/lists/getbytitle('Documents')/getusereffectivepermissions(@u)?@u=%27i%3A0%23.f%...
1
vote
1answer
22 views

Name property of Folder is blank when folder is created using REST API

I tried creating a Folder in a SharePoint 2013 library using REST API. I used the examples provided in Microsoft MSDN site using "folders" end point as well as "add" end point. Folder was created ...
1
vote
1answer
13 views

List not showing up on making REST call

I have a custom list that I am trying to get contents from a designer workflow. I am testing the link on the browser, but the list does not show up and instead throws "page not found" error when I try ...
3
votes
1answer
61 views

filtering rest api call by calculated column

I am not getting any results when I try to filter by a calculated column/field. The calculated field returns yes/no and it displays YESes and NOs in the view on browser. But when filtered for Yes or ...
1
vote
4answers
4k views

What is the REST endpoint URL to get list of site collections?

If I go to SharePoint 2013 site, click on Admin -> SharePoint, you will see a list of site collections (the link is https://somename-admin.sharepoint.com/_layouts/15/online/SiteCollections.aspx) What ...
2
votes
1answer
3k views

Getting List with REST Service to HTML page on different domain

I am trying to get data from SharePoint and display it in an HTML page on a separate domain using SharePoint 2013's API. The SP instance sits on-prem and the other domain is also within our firewall (...
1
vote
2answers
647 views

Access Target Audience with REST API - The field or property 'Audience' does not exist

Resorting to asking a question on here as I cant seem to find anyone else who is trying to access the Target Audiences field with the REST API. If I try and pull out all the items in my list using: /...
2
votes
3answers
1k 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
377 views

Update readonly field using REST API

I am trying to update a list item using Rest API. Following is my code. It works and it updates all fields except "RichMessage" which is a Note field with RichText="TRUE" and readonly. I have tested ...
1
vote
1answer
650 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 ...
0
votes
1answer
20 views

How to get 1 specific site property in SharePoint 2013 REST api?

In SP2013, I want to get a specific property I made in sharepoint designer. If I use the url http://mysite/_api/web/AllProperties then I can get all properties including the one I want, but how can ...
1
vote
1answer
833 views

Authentication using Sharepoint Online REST API to create Task for Organizational Site

I have a Office 365 Organizational SharePoint Online Account. I want to Add Few Tasks in one of the list programmatically. I saw options of using JavaScript API or hitting the REST URL's https://...
0
votes
0answers
24 views

Consistent way to create FieldLinks within content types using javascript

Word of caution: This question is related to question How to create ContentType with FieldLinks using REST but is more specific as we are looking to find a solution until (if?) MS brings the API ...
0
votes
1answer
34 views

SPFileCollection.Add REST endpoint

I am working on a project where I need to copy a document from one site to another site in Office365. I want to achieve this using SP designer workflows. I learn that I can use SPFileCollection.Add ...
0
votes
1answer
34 views

Need help using SEARCH REST API

Im currently trying to build a SharePoint Add-in that tells you who's birthday it is on the current date. I would like to use the SharePoint search api for this but im struggling with an issue. ...
7
votes
3answers
5k views

Send E-mail from javascript using REST API

I want to send email using Javascript/jQuery using REST API in SharePoint. I have tried _api/SP.Utilities.Utility.SendEmail and this is my code: Code $.ajax({ contentType: 'application/...
0
votes
2answers
2k views

Office 365 SharePoint Online 2013 REST with SoapUI

Im trying to run Office 365 SharePoint Online REST API calls. I get an error message: <m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> <m:code>-...
1
vote
2answers
30 views

How can I populate a dropdown with a SP list?

I have a SP List with data that I need to be in a dropdown list. I also need these to have specific classes. I'm trying something like the following but having no luck: $().SPServices({ ...
0
votes
2answers
100 views

Folder created through REST API of type SP.Folder in a list is not visible in sharepoint list UI

I am trying to create a folder inside a custom list using REST API with with type SP.Folder. I am able to create the folder successfully. Below is the code i used. English folder has been created ...
0
votes
2answers
31 views

Is there any way to overcome URL length limitation in REST API “GET” Requests?

Is there any way to overcome the 2083 characters limit using REST API GET request itself.
1
vote
1answer
62 views

Sharepoint REST call to get file by ID - GetFileById fail on 404

There are some files. when I'm trying to get their content by ID (GetFileById) I'm getting 404 Not found error. I'm getting the file unique id from the item properties and then trying to get the ...
2
votes
3answers
405 views

REST 403 Response on Chrome/Firefox/Edge but not IE

I have created a SharePoint Add-In that attempts to list out the subsites of the current site using the REST api. Here is the code snippet: //Subsites function searchSubSites(webUrl, success, ...
4
votes
1answer
78 views

Get MIME type from RESTful API Call

I am currently using Sharepoint 2013 and am using this URI to get some basic metadata about the documents under the document directory: /_api/web/Lists/GetByTitle('Documents')/Items?$select=...
1
vote
2answers
59 views

Difference between Search REST API and Lists REST API

I'm having difficulty explaining my question, mainly based on the reason for the question itself. So the whole issue is a circular mess in my head. I really have a slew of questions. Please ...
0
votes
0answers
13 views

EnableAssignToEmail on List Creation via REST

I'm creating a task list using the REST API. This is what the beginning of the list's properties look like: "__metadata":{"type":"SP.List"},"AllowContentTypes":"true","BaseTemplate":171,"...
1
vote
0answers
30 views

URL Length restriction on GetFileByServerRelativeUrl

I'm trying to get file by using GetFileByServerRelativeUrl and getting the url length restriction error. In some posts I see that people recommend to use this call with parameter , like this : https:/...
0
votes
1answer
31 views

numeric column/field received through API call always gets saved as 0 to designer workflow variable

When I retrieve an O365 site's list's items in the designer workflow (2013) using rest api call, the Number type columns always get set to local integer variables as zeros. I have inspected the ...
6
votes
2answers
2k views

SP 2013 REST API How to get Approval Status for Version History items

This is how SP presents Version History: I use this URL to get file history: http://portal:34798/Documents/_api/Web/GetFileByServerRelativeUrl('/Documents/Documents/Tests/Tests_TextFile.txt')/...
3
votes
2answers
1k 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
3answers
64 views

Tool to inspect json data returned from REST API call to Sharepoint online/Office365 Sites

What tool should I be using to inspect the JSON data returned as a result of making a rest api call to the sharepoint online or Office365 site. The browsers return xml and I am having issues using ...
0
votes
2answers
1k views

Creating a subsite using c# and the REST API

Im trying to create a site using the REST API from a console app. I keep getting: "Not well formed JSON Stream" I cant find much on calling the REST API from c# so have been piecing it ...
0
votes
2answers
39 views

Upload document to SharePoint from External Application

I have an external application where we want to show a upload form where documents uploaded should go in SharePoint Document library in the backend. Is there any REST api that can do this job for us? ...
1
vote
1answer
30 views

How to save current login name to SharePoint people and group column using angularjs?

Add.js $scope.addEntity = function (entity, $event) { entity.dateString = $("#dpFrom").val(); entity.ExpDateString = $("#dpTo").val(); if (entity && ...
3
votes
2answers
89 views

Get lookup from REST API

REST API url is /sites/MySite/_api/web/lists/getbytitle('MyList')/items?&$top=100 I have a lookup column called Sector in the list. How to retrieve this lookup value from the success call of ...
0
votes
1answer
33 views

REST returning [object Object]

I converted a CAML query to REST and one of the fields that displayed the data using CAML now appears as [object Object] when using REST. Why and how to correct. Thanks
3
votes
1answer
52 views

Retrieve Images Not Working Via REST API

I am trying to retrieve Images using the REST API from iOS/Android. The issue I’m running into is when the images are stored in the /sites/siteName directory, the REST call does not work. Let me ...
0
votes
1answer
36 views

SharePoint 365: Updating User-type fields through REST api

On my SharePoint online (version 16.0.0.5312), when I retrieve items through REST api: /some-site/_api/web/lists/getbyTitle('ListName')/items(3), the API returns a new property for User-type fields. ...
0
votes
1answer
19 views

How to Parse GetMyProperties REST Response

This is what the pre-parsed data looks like in the console after querying http://mysharepointsite/_api/SP.UserProfiles.PeopleManager/GetMyProperties?$select=Department : I am trying to get the ...
1
vote
2answers
48 views

Attempted Folder Creation Results in (403) Forbidden

I cannot see why I am getting a 403 error on this code to add a folder to Documents library of a SharePoint Online site. public static JToken AddFolder_SO(Uri webUri, ICredentials credentials, ...
0
votes
0answers
15 views

JSOM / REST Modify Field EntityPropertyName

I can't figure out how to modify a SPFieldEntityPropertyName, perhaps it be unachievable using just SharePoint javascript API. JSOM context.web.get_fields() setter methods are: Note: I think ...
5
votes
1answer
5k views

How to get Social Comment in SharePoint 2013 using JavaScript (REST) or Search?

I have added a Noteboard Web Part in my page. Now user is adding comments in Noteboard Web Part. I want those comments count. How can I get it using JavaScript? I am using SharePoint 2013. Is there ...
1
vote
0answers
24 views

OAuth+OpenID+REST JWT Token and Audience working with subdomains?

Ok, so I have used OAuth and gotten my JWT token and I’m having a lot of success using the REST API to do what I want to do (upload/download files and folders) however, when I get a list of sites I ...
3
votes
1answer
60 views

REST document url

I'm using rest to develop an add-in, the URL looks like this: url: appurl + "/_api/SP.AppContextSite(@target)/web/lists/getByTitle('" + ListName + "')/items?$select=FileLeafRef,Modified,...