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
54 views

How to find out the real path of an file in Sharepoint?

I am currently trying to write an application using C# that accesses a file stored on a SharePoint server programatically using the REST API. For that purpose, I want to check out a file. The file ...
2
votes
1answer
1k 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 ...
0
votes
1answer
34 views

How do I use REST $filter with a “Hyperlink or Picture” type column?

The $filter method works perfectly on regular text columns, but I can't figure out how to use it with a "Hyperlink or Picture" type column. For example: ...
0
votes
0answers
24 views

Cannot get value for projected field

We are calling expand on a people picker column of a custom list but get the following error due to a particular SharePoint user having a null value for EMail. Cannot get value for projected field ...
0
votes
1answer
18 views

Updating List Item using REST API generates no error but nothing happend

Following is my code using Rest API to update a List Item. It generates no error, goes to success callback. However it does not update the List Item. var itemTitle = "Test item"; var userId = 22; ...
0
votes
2answers
612 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 ...
3
votes
1answer
558 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
4answers
1k 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 ...
0
votes
1answer
72 views

Postman Rest Call to _api/contextinfo failing

So I have been having this issue for awhile and im not sure what has changed. I used to be able to get the form digest value from hitting the /_api/contextinfo endpoint using a post call after ...
0
votes
2answers
33 views

Set Managed Metadata Values via REST

I am able to query and get an array of all my term names and guids within a Term Set, but now I want to be able to set these via REST. When I look at the structure in JSON the section with my Managed ...
1
vote
1answer
726 views

Getting Calendar items on Office 365 using REST API

Hi SharePoint Ninjas, 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 ...
0
votes
2answers
693 views

Upload attachment in a document library using c#

Our client is running CRM and SharePoint and they would like to upload attachments from CRM into SharePoint 2013 Online. I started searching the web for some help and I came to this Microsoft page. ...
2
votes
0answers
16 views

Is there a way in SharePoint online to programmatically find out how many users are assigned a SharePoint license in Office 365?

Basically we have a provider hosted app that needs to check the number of users in an Office 365 subscription that are assigned to a SharePoint license. Maybe some sort of Office 365 API?
0
votes
0answers
12 views

Adjust width of cells returned by Excel REST API

Scenario: I have a PivotChart in Excel that summarizes some data, but some additional info that doesn't fit the Pivot format needs to be shown too, so we have a text box in the chart that displays ...
1
vote
2answers
452 views

SharePoint Hosted App: Using Cross Domain call to access list items on Host Web

I can use Chrome Advanced REST tools to test out a get list items request on the host web http://mydev/records/_api/Web/Lists/GetByTitle('Uber Documents')/Items?$select=Title Ok now I want to use a ...
0
votes
0answers
20 views

How to convert string to byte array and create document with that byte array using REST Queries

I am having with requirement to create a document with some specified string. I am trying to convert that string into byte array, array buffer. I am able to create a document. But unfortunately that ...
0
votes
2answers
992 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
1answer
16 views

Value of people field does not show up on result of rest api

I have two lists, Notification1 and Notification2, and they have the one people field named Owner. The first one is created via SOM, and the last one is created via SharePoint UI. The problem with the ...
0
votes
0answers
17 views

Discussion Board : An error occurred while processing this request REST Services

I have created a list using Discussion Board template in SharePoint Server 2010 site. I am accessing the list using REST services as below. http://[servername]/_vti_bin/listdata.svc/TeamDiscussion ...
4
votes
2answers
487 views

Audit log web service for Office 365

I am working on developing an application that will interact with the Office 365 services. I am currently able to get the files and folders of a singed-in user using the OAuth2 authentication. I am ...
2
votes
3answers
5k views

get current user info using jquery ,REST and csom

My goal is to get the login name and picture for the current user. I am using SharePoint 2013 Foundation. I tried three method and non of then worked correctly: This is with jQuery SPServices: ...
0
votes
0answers
15 views

Get lists from subsite with webervice

I'm using SharePoint 2007 and try to retrieve all list from a subsite. I added reference of my subsite in my solution: http://sptest/sites/root/subsite/_vti_bin/lists.asmx Here is my code Private ...
0
votes
1answer
54 views

Is it possible to write from Client App Part to a list in its Appweb?

Didn´t find any information at google or at stackexchange for this topic. I wrote a sharepoint hosted app, which has a list. In default.aspx I get data from that list via Rest and have form to create ...
0
votes
0answers
22 views

sharepoint rest query for multiple parameters

I am using REST query for getting values in search I am trying to use a filter that combines topic and field http://URL/_api/search/query?querytext='Path:http://URL/en/topic/article OR ...
1
vote
0answers
55 views

On Premise SharePoint 2013 host web Rest api cross domain access from MySite

We are using the OOTB REST api to access data from the Host Web App using JavaScript. The MySite has been set up under a separate Web App following the recommendations of Microsoft. This site needs ...
1
vote
0answers
143 views

How to dynamically set credentials when calling a REST web service with code in Infopath

Our SharePoint is configured to use Claims Based Authentication. We want authenticated users in SharePoint to fill a form and some fields will be automatically filled with their personal data. We ...
2
votes
1answer
760 views

SharePoint Hosted App Cross Domain Calls to a REST API

I have a SharePoint hosted app and I want to use the JIRA REST API with it. Which means I want to make requests and work with the data from the responses. Because it's a SharePoint hosted app I can ...
0
votes
1answer
588 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 ...
1
vote
1answer
578 views

SharePoint 2013 Rest API OData Query

I am calling rest uri from jQuery ajax with filter string comparison startswith as below ...
4
votes
4answers
6k views

Query SP2013 Managed metadata term store

I was wondering if it is possible to query the Term Store via the REST API or Javascript Client Object Model in SP2013. I can't quite seem to work out the naming scheme for the REST API to discover ...
1
vote
1answer
26 views

preflight returns 401 response even though headers correct

I am trying to access a sharepoint server REST api to upload some files. Access is via our tomcat application Although I believe I setup correctly the headers in IIS the request does not pass the ...
0
votes
0answers
19 views

Cannot delete the web site '<url of my app>' because it is an app web

I tried to delete an application (like Power BI or Access) of my Sharepoint online with the REST API but I got an error : HTTP/1.1 500 Internal Server Error Cache-Control: private, max-age=0 ...
0
votes
3answers
36 views

How to get ItemChildCount of DocumentSet (folder) using REST Api

I used SPServices to create and get a list of custom DocSets. There were some problems with that, so I wrote the code to create them with REST services. And that works properly. I'm trying to rewrite ...
1
vote
1answer
521 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. ...
5
votes
3answers
3k views

REST with $filter for List Items in Sharepoint 2013

Sharepoint 2013, REST API, native C++ application: I want to get all Folder items from the list. Try /_api/Web/Lists(guid'GUID')/Items?$filter=FileSystemObjectType+eq+1 and get HTTP 400 Bed ...
1
vote
2answers
129 views

Check User has Full Control Site Permissions

Is there away to check if a user has Full Control permissions with out throwing an exception? I've tried the following using REST: ...
2
votes
1answer
2k views

How to get 'form digest value' used in REST call?

I am trying to delete a web by calling the REST service from a SharePoint 2013 workflow. The MSDN reference here tells the syntax like $.ajax({ url: "http://<site url>/_api/web", type: ...
0
votes
0answers
14 views

Insert “Like” on discussion board using rest api in sharepoint2013

How can we insert “Like” for a discussion and for its replies through share point rest api and not jsom? How to go beyond this point ...
1
vote
1answer
73 views

Obtaining bearer token for Sharepoint REST API calls

Our scenario is following: User logs in through SSO (using Azure AD) to our website. On the site we have a page that will show links to some documents from SharePoint. The page will query SharePoint ...
0
votes
0answers
16 views

HTTP request on lists.asmx GetVersionCollection method

While looking for a HTTP REST method to return Document Version History, I stumbled on the GetVersionCollection method. However, I have not found any syntax showing how to make the call from a ...
1
vote
0answers
23 views

REST analog of SP.Utilities.Utility.formatDateTime

I would be very glad if someone help me, I am trying to find REST analog of SP.Utilities.Utility.formatDateTime function: var context = new SP.ClientContext.get_current(); var web = ...
0
votes
1answer
32 views

Is there a way to get notifications using Sharepoint REST API?

I have created Sharepoint provider-hosted app. With the App only token, I want to get the notifications for file addition , file deletion , file shared ..,etc for all users(onedrive sites) in a ...
0
votes
0answers
20 views

SharePoint 2013 - mobile access

I wanted to take some general guidelines - how certain on-prem SharePoint 2013 publishing contents can be exposed to the mobile devices anonymously accessible to the employees. This includes some ...
0
votes
0answers
46 views

Adding Discussion board replies using REST API

Can anybody please help me by providing some sample code for adding replies to Discussion lists using REST API? I already have a look on this post, but the answered guy has given the jsom solution. ...
2
votes
0answers
25 views

Access denied while creating subsite from workflow

I am following this article to create a subsite from workflow. I am getting following error {"error":{"code":"-2147024891, ...
1
vote
1answer
632 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
2answers
60 views

REST query not working on list after 5k threshold

The following query works on one site: mysite/_api/lists/getbytitle('Listname')/items?$top=5001&$filter=IndexedCol1 le 'M' and Author/Title eq 'John ...
1
vote
2answers
66 views

Sharepoint 2010 Blog - Order rest query by Category

I've created a blog on Sharepoint 2010 and want to query the list via REST for reporting. I want to order the list by the default field Category (internal name PostCategory). Unfortunately, this is a ...
0
votes
1answer
20 views

SharePoint 2013 Rest list insert, log when fails?

Is it possible to log when a Restful insert into a list fails? we have a web form that should be saving back to a list an I want to know when it is failing as well as succeeding.
1
vote
1answer
34 views

how to filter based on roledefinitionbinding hidden property?

pi/web/lists(guid'myistid')/items(6)/roleassignments?$expand=member,RoleDefinitionBindings/hidden&$select=member,RoleDefinitionBindings/hidden&$filter=RoleDefinitionBindings/hidden%20eq%20fals ...