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)

0
votes
1answer
799 views

401 Unauthorized Exception with SharePoint search rest API

Note: Please do not make my question as duplicate, still i haven't get any proper answer for my question. I am getting 401 unauthorized error when calling a sharepoint search rest api ...
1
vote
1answer
11 views

REST list of built in columns for $select

I'm just getting into using REST calls to work with SharePoint 2013. The first challenge I'm facing is know which columns I can retrieve using $select and which ones need to be expanded. For example ...
0
votes
0answers
17 views

REST API Throttle Limit Error

I have an application I built in SharePoint Online which uses REST API queries to pull records out of a SharePoint list which has 400k records. The list has an indexed column and for the most part ...
3
votes
1answer
47 views

Security Error while doing REST update on the SP list

I am trying to make update with the usage of REST but I got an error: -2130575251, Microsoft.SharePoint.SPException. The security validation for this page is invalid and might be corrupted. ...
0
votes
0answers
7 views

Filter search query by DocId using REST API and JSON

url/_api/search/query?querytext='ContentTypeId:<guid>'&sortlist='NewsDateOWSDATE:descending'&selectproperties='Title,Path,Description'&refinementfilters='DocId:121455' Now I want ...
1
vote
0answers
17 views

Filter with empty value using REST API

I have two filters to filter on ,one is status and other is category. status is : new/approve/rejected and blank if status is new then show new records , if approve then approved, if set blank ...
1
vote
1answer
20 views

Rest api add to select append sharepoint list is undefined

If alert view then OK, but is add code select append, not working - undefined Here is code: function getListItemById(webUrl,listName, itemId, success, failure) { var url = webUrl + ...
3
votes
1answer
50 views

Enable/Disable “Like” button using REST API

I have a Likes count column in a custom list . I am trying to update the likecount from client side using REST API. If a user has clicked on Like once, then it should disable the like button for ...
1
vote
1answer
622 views

How is ViewsRecent in search results calculated?

I need to find the top 3 visited webs for the last 4 weeks and I need/want to do it via the REST search api. This is SharePoint 2013. The value ViewsRecent returned by a search query seems to be what ...
2
votes
0answers
14 views

rest ajax sharepoint designer

I am trying to apply and use JQuery news ticker from SharePoint list for which I need to use REST Ajax call, I have tried some codes from net but none of them works, so I am confused where to put the ...
2
votes
2answers
604 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 ...
1
vote
1answer
16 views

SP2013 REST API - How to retrieve the creation date of a document

I try to get the creation date of a Word document added to SharePoint using the REST API. Metadata properties of my document created at 2012-03-09: My URL to get document information: ...
1
vote
2answers
2k views

Uncaught TypeError: undefined is not a function

I access my web in javascript code in SharePoint 2013. I'm using Jquery and KnockOutJS for my other functions. So I have added following urls above my code. <script type="text/javascript" ...
10
votes
3answers
704 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
25 views

Project Server - REST - Security Groups

I am trying to fetch all project server security groups, when I query the end point http://consoto.com/pwa/_api/web/sitegroup, I get a list of all site permission user and groups found under Site ...
0
votes
1answer
7 views

Create List item Sharepoint 2010 REST with Choice column

I am trying to create one new list item in Sharepoint 2010 using REST. Coding var itemProperties = { 'Title': ;Raja;, //Single line String 'Expiry_x0020‌​_Date': "02/02/2016", //Date ...
0
votes
1answer
24 views

REST API Files in Folders from Document Library

I am building SharePoint add-in on Office 365 based on angular JS. I followed another article here to try and read documents from a folder in a document library from the HostWeb. here is the URL ...
0
votes
1answer
319 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: ...
0
votes
0answers
21 views

Access SharePoint site mailbox using outlook REST API

I need to access emails in a SharePoint site mailbox using OUTLOOK REST API. I was able to complete the authentication part successfully. So I sent this GET request using POSTMAN. Request URL ...
0
votes
1answer
635 views

Is it not possible to add user to sharepoint group using REST for cross domain calls?

I am trying to add user to a sharepoint group in a "sharepoint hosted app". First I am checking whether the user exists in that particular group or not. If not, I am trying to add that user to a ...
1
vote
1answer
535 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 ...
2
votes
2answers
24 views

Why are my field names wrong when retrieving data using the _api/lists REST api in Sharepoint 2013

I am trying to retrieve data from a custom list in SharePoint 2013. I created the list with several fields: Title (single line text) Subject (single line text) Release Date (date/time) Main Contact ...
1
vote
0answers
26 views

Read user field via Javascript/REST: Some users are NULL

I have a simple list with a simple user field. I can assign users, save the item and everything was working fine... ...until I tried to access the list via REST call within a Javascript. Some of the ...
0
votes
0answers
26 views

AJAX REST filter

I have a SP-List that I want to retrieve data from using Ajax. Everything works as it should but my question is the following: List A have the Status column I want all of the object with status A and ...
1
vote
2answers
1k views

Getting Calendar items on Office 365 using REST API

I am having trouble with a REST call using jQuery on Office 365 and was wondering if you guys have ever experienced something similar and could give me some hints? What I am trying to achieve is to ...
0
votes
1answer
550 views

How to return multi-value fields via SharePoint Rest API?

After reviewing my results, I realized one of the sharepoint columns only returns one value. How do I get it to return each value from my Role Column? It should look like this: Title: FDA Program ...
3
votes
1answer
53 views

.push() and .pop() multiple value lookup field via REST API

I'm updating a multiple value lookup field via REST with the following code: var itemProperties = { '__metadata': { "type": "SP.Data.QuestionsListItem" }, 'AnsChoicesId': { "results": [1,3] } ...
0
votes
2answers
1k 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"> ...
1
vote
1answer
117 views

How to Modify Search REST query after Thesaurus is called

I have a query "< my_url >/_api/search/query?querytext="Bureau'" I have added to the Thesaurus Bureau,Office. I am trying to get the query to return everything that 'Office*' would return. ...
1
vote
0answers
19 views

Trouble uploading file to Document library using REST api and JSOM

So I have been trying for the last day or so to get code right to upload a file to a newly created document library based off a custom template. Based on my research I know I am getting all of the ...
0
votes
4answers
2k views

How to get the ID of a list item with a given GUID in Sharepoint online with REST api?

I tried a request at a url of the following form .../_api/web/Lists/getByTitle('docLib')/items?$select=id,GUID&$top=1&$filter=GUID eq '2779cf8051-381f-4834-93dc-ece6345dde33' and i get ...
0
votes
0answers
9 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 ...
7
votes
2answers
3k views

Retrieve toplevel site's subsites using REST _api

I'm currently working on an iOS app which uses _api-services to retrieve data stored in documents libraries of a SharePoint Online. Consuming _api/web/Lists/ works well so far. At the moment the REST ...
6
votes
3answers
2k views

Workflow getting Access denied when calling the rest webservice from subsite

i have following problem. I am using SP 2013 Online and i am trying to access some informations from the sub site, like http://[SPOnlineUrl]/SubSite/_api/web/title. But i will always get the annoying ...
2
votes
1answer
2k 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
86 views

Sharepoint authentication without CSOM, JS or 3rd party dlls

I am new to Sharepoint. I am trying to create a folder in sharepoint shared folder and this needs to work for both on-premise as well as sharepoint online. The problem that I am facing is, it works ...
1
vote
2answers
571 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
3answers
54 views

Use REST API with CAML query to fetch the files inside multiple folders in single REST Call

I have a scenario where i would like to fetch all the files from multiple folders using REST API. I would like to filter the data in such a way so i can ignore the folders and fetch only the files ...
7
votes
1answer
74 views

How to send a “like” or “unlike” command via REST API?

The structure of my REST-API Url is /_api/Web/Lists/GetByTitle('FAQ')/Items. Each item can be liked by users (like in discussion boards). How can I send a "Like" or "Unlike" command via REST?
2
votes
1answer
330 views

Approve folder in document library from Rest API (SharePoint Foundation 2013)

I am able to approve files easily enough with the url var url = SPAppWebUrl + "/_api/SP.AppContextSite(@target)/web/GetFileByServerRelativeUrl('" + filePath + "')/Approve(comment='AutoApprove - " + ...
0
votes
0answers
17 views

Reading and expanding a foreign key value from an expanded list in SharePoint

I have a the following lists in my site: Staff - has staff details and a department foreign key Departments - has department details Project Tasks - has a number of tasks Department Tasks - has ...
0
votes
0answers
11 views

listdata.svc substringof oddities

I have been working on a tool which uses listdata.svc extensively and uses a lot of queries using the substringof operator. Originally I was creating filters in the manner: ...
0
votes
1answer
24 views

Disable text box for few seconds after success message

I'm trying to disable a textbox/and button for few seconds after the "Send button" has been clicked and then enable it again as well empty the textbox. But it doesn't work out. I have an onSuccess() ...
1
vote
1answer
17 views

Upload documents from other websites

I want to upload documents from a ASP MVC website to my Sharepoint document library. Found a lot of websites about this topic, but most of them are focussed on uploading documents from within ...
0
votes
0answers
14 views

Upload video to Assets Library using REST throws 404

I cannot figure this out: when I try to post a video to an Assets Library I get an 404 error (FileNotFoundException) similiar to this question. So I 'catch' the error and continue but what am I doing ...
1
vote
1answer
13 views

Inconsistency in printing SharePoint list items using jQuery REST

I am retrieving data from my SharePoint site and printing it to a html table. The problem is that at times, when I print the data I fetched, my code fails to print all the data I expected. I have ...
1
vote
1answer
681 views

REST updating List field

Using REST Api, how would I go about updating a plain number column within a list? Is there any faster way of doing so aside from doing a GET, then a separate POST? Seems there could be a faster way ...
1
vote
1answer
32 views

How can I extend an existing sharepoint rest api “function”

In my project (using SP 2013) I need to get information from a couple of different lists and merge them for display purposes. Instead of using a couple of ajax requests to the api and merging the ...
1
vote
0answers
20 views

Sharepoint REST API - Create InformationRightsManagementSettings

To create IRM settings using REST API, I am referring to document https://msdn.microsoft.com/en-us/library/office/jj247077.aspx As per documentation, it suggest below REST endpoint to create new IRM: ...
0
votes
2answers
51 views

Change filename of existing file on SharePoint Document library using REST API

I have a question on how to change an existing file on SharePoint document library using REST API. I have a couple of files in the location http://site ...