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
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 ...
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
90 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
587 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
61 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
77 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
331 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
17 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
706 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
52 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 ...
0
votes
1answer
555 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
43 views

AssignedTo Column multi users via REST-API

Is it possible to set (Update/Create) 2 users to the AssignedTo column in SharePoint Online? I am using REST-API (JS). When I put one user with: AssignedTo "- 1; #USER@company.com" it works, ...
5
votes
2answers
1k 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: ...
1
vote
3answers
48 views

Code to run after Ajax completed its looping

In the below code, the alert will come three times but i need it only once. I have also tried by keeping the alert outside the ajax code but then the alert is coming once but the problem is that it is ...
0
votes
1answer
44 views

SharePoint 2013 REST Current User GUID

I am trying to get the current user GUID (not the Id, an integer). Making a call to http://servername/_api/web/CurrentUser/ which would would give the Id which can in turn be used to make a call ...
1
vote
1answer
737 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 ...
0
votes
1answer
24 views

Why the “401 Unauthorized” when using Call HTTP Web Service against a text file?

I have a mydata.txt file under SiteAssets whose contents are JSON (SharePoint prevented my use of a .json extension). I shared the file with Everyone. I can make a getJSON request with jQuery in the ...
17
votes
6answers
21k views

How can I authenticate SharePoint REST calls from JavaScript?

I have been banging my head against a wall on this problem for weeks now Warning and Disclaimer .. I have very little JavaScript experience when it comes to REST / Web Services I have an on ...
2
votes
1answer
50 views

Update list item using SHarePoint REST API not working

I am facing issues with updating a simple list item using SharePoint REST API. I have gone through all the blogs to get a solution but the result is same. When ever i execute the update list item ...
0
votes
0answers
8 views

Need calendar webpart that uses a REST w-s, not SharePoint list, to display data (can't use BCS)?

The business requirement is to open a SharePoint page, pass my user credentials, curriculum ID, the REST W-S triggers, fetches my "curriculum" data, and displays this "date", "time", "start", "end", ...
1
vote
5answers
3k views

get the attachement files from REST API

I use REST API SharePoint 2013 to get the items from list: And and I want to get the Attachments Files, How can i do that? This the code : function getListItems(url, listname, query, complete, ...
5
votes
2answers
2k views

Create Page using REST API

I have spent two days trying to create a page with a specific Content Type in Pages list using REST API. It goes into error handler and returns ...
0
votes
1answer
592 views

Get File Url from a Lookup Column REST API

I have a lookup column that correlates to a background image in my presentation layer. Is it possible to expose the URL to the actual file via the $expand mechanism using REST? Example REST URI ...
2
votes
1answer
856 views

How to authenticate user in SharePoint Online using rest api

I have a website on SharePoint Online and a website on SharePoint On-premise. From my On-premise website i want to create a new list on my SharePoint Online site. To authenticate I used the ...
1
vote
3answers
1k views

Field level permission development

I am aware that there already are some questions regarding on how to implement field level permissions customization in SharePoint, such as: SP 2010: column permission Permissions for List or ...
1
vote
1answer
45 views

JSLink and REST API issue with async

I am trying to use REST API inside JS Link. SPClientTemplates.TemplateManager.RegisterTemplateOverrides(OverrideFieldContext); function OverrideFieldContext(ctx) { var groupingName = ...
1
vote
2answers
45 views

Cross Domain REST Calls - Always 401 before 200 received

I am attempting to create a REST call across domains (we have different farms with different domains in our organization. I am not doing this through an app, but instead I am doing it via a CEWP ...
0
votes
1answer
679 views

How to create list item in an external list using SharePoint workflow?

Environment: SharePoint 2013 SP1 I have an External List displaying data exposed through a WCF service. Creating, Reading, Updating and Deleting (CRUD) items in the external list works fine in the ...
2
votes
2answers
57 views

How to get all user profile in sharepoint using REST API

I am trying to get list of all user profiles using RestAPI in office 365, But could not find any method for it. I can get property of any specific user successfully by following method: ...
1
vote
0answers
46 views

Rename Sharepoint 2013 document library file name using REST and JS

I am new to Sharepoint. I have a list of files in a document library. Files are placed within the year folder, followed by the sub-folder of month and the day wise sub-folders. I have a list of ...
3
votes
1answer
224 views

How to retrieve image column from SharePoint List using REST API

How to retrieve image column from SharePoint List using REST API
0
votes
1answer
28 views

How to create a new SharePoint list with data from existing list using PowerShell?

For a university project, I have to create a new list with data from existing lists in SharePoint 2013. From my little experience in this field, I would use PowerShell with SharePoint's REST API to ...
5
votes
1answer
4k 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 ...
2
votes
2answers
37 views

Best way to create a multiple item submit form

I'm looking for a way to create a form in SharePoint 2013 which will allow me to submit multiple items into a list (each line as an individual record). So, for example, i'd have a form with inputs for ...
1
vote
0answers
39 views

BCS REST Performance Issues

So we're migrating from On-Prem 2010 to Office 365 and I need to convert some of our simple calendar webparts to online solutions. I've setup an External Content Type in 365 using SharePoint ...
0
votes
0answers
20 views

How to set associatedOwnerGroup with REST API in SharePoint 2013?

Can you please let me know how to set associatedOwnerGroup with REST API to new site which does not have any group. I have created new group & able to Add Role. But I am not able to get any help ...
0
votes
1answer
78 views

Query multiple SharePoint lists Using REST API and angular JS

I am using a provider hosted app and developing the app using angular js and SharePoint REST API for fetching List data. I am facing an issue with calling SharePoint lists through multiple cross ...
-2
votes
1answer
24 views
0
votes
2answers
50 views

What is client object model SharePoint 2013?

I am new to SharePoint, I want to know what is CSOM and REST in SharePoint 2013. what is the basic difference between CSOM and REST in SharePoint 2013
3
votes
2answers
56 views

Performance will be better using CSOM or REST API to retrieve data from 4 lists simultaneously.?

I am developing Sharepoint hosted app, and there is a situation where i need to get the data from 4 lists simultaneously, then use it later on. I am able to do it using CSOM. But performance wise what ...
1
vote
1answer
43 views

Issue with symbol “&” in REST API

In REST API when I pass a value with &(ex: India & China), it throws error and when I checked it in browser it shows &amnp; in place of &. ...