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
406 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. ...
2
votes
3answers
60 views

Get Columns via REST

I'm trying to get a list of all columns/fields for a list via REST using the /_api/Web/Lists(guid'xxxx')/Fields endpoint. This works fine, except it's adding in all of the system and duplicate fields ...
2
votes
1answer
788 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
0answers
25 views

Create a folder in document library using REST (Java)

How do you create a folder in document library. I got this code right now but getting error code 403 FORBIDDEN public void createFolder(String digest) throws ClientProtocolException, IOException { ...
0
votes
1answer
29 views

SharePoint REST api Input string was not in a correct format

I'm fairly new to SharePoint and have been wrestling with this particular problem for some time now. Whenever I try using the REST API for a calendar list using the following url ...
0
votes
1answer
28 views

Query rules and REST

Is it possible to create a query rule and have the condition match a keyword in a complex KQL query? For example the following query is being issued from a third party application using the REST ...
-2
votes
2answers
27 views

Rest webservices in SharePoint?

Any documentation to learn REST Webservice in SharePoint ? I am trying to create REST webservice for SharePoint.
1
vote
1answer
21 views

Can we trigger a SP2013 WorkFlow using REST API + Jquery?

Can anyone suggest whether there is any possibility how to trigger a SP2013 WorkFlow using REST API & Jquery ?
0
votes
0answers
25 views

How to update metadata for Sharepoint 2013 rest service?

How to update metadata for Sharepoint 2013 rest service using Java
0
votes
0answers
108 views

Any access vba/macros code to read/write to SharePoint O365 list using REST API

Can anyone help me with a sample code to read/write to SharePoint O365 list using REST services. I have searched the net and i see examples for excel that im unable to use in access. Also the other ...
0
votes
0answers
13 views

Can we get Excel Pivot chart as an image in SharePoint 2013

I have a workbook which has a pivot chart and we are showing it in Excel services web part. Now my question is: Is it possible to access that chart (as an image) element? I know we can use REST api ...
0
votes
0answers
27 views

Add Guest Reader site user for a File

I want to know how I can add a Guest Reader site user on my OneDrive. Since a Guest Reader is for a particular file, I want to know if I can add such a user through REST API. I am looking for ...
0
votes
0answers
29 views

Office365 REST API bad request while saving data to List

In a SharePoint hosted App am trying to save data to my list in Office 365 using REST API below is the code. The problem with this code is it works fine for less values passed (eg: my in my item I ...
4
votes
4answers
1k views

SharePoint REST API call with more than 500 rows

I have an AJAX call querying the SharePoint REST API which will return more than 500 rows: $.ajax( { url: _spPageContextInfo.webAbsoluteUrl + ...
2
votes
2answers
97 views

Office 356 REST API for search

Office 365 REST API for search return only 500 rows by setting parameter rowimit=500. This is the query i am trying.. https://server_address/_api/search/query?querytext='test'&rowlimit=500 but ...
1
vote
1answer
522 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 ...
3
votes
1answer
490 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
2answers
188 views

Upload files to SharePoint Online using REST API

I'm trying to develop a console application which will upload files from the users client PC to a SharePoint Online site. I've written a version that used CSOM, but the file size is limited to 1.5Mb, ...
0
votes
3answers
53 views

Filtering REST call with lookup field

We have a column defined on a custom list that allows for multiple select of values from another custom list. The column on the list is call Panels. When I do a REST call against this list, I can ...
0
votes
1answer
31 views

CRUD Tasks using Java via JERSEY REST

I am trying to create a rest webservice using Jersey library. I want to upload, get, delete and update a document in document library. Can someone link an example of simple crud. For some reason I ...
0
votes
1answer
36 views

Cross-Domain Calls in SharePoint - Comparism

Basic Example mysite.mysharepoint.com has clientside code that wants to access a list on mysharepoint.com due to whatever reason. the Same-origin policy forbids this Possible Workarounds SSOM ...
1
vote
1answer
27 views

web api query with $filter return HRESULT : 0x80131904

I try to filter items using SP2013 web api such this request : _api/web/lists/getbytitle('Activity')/items?$filter=Mylookupfield eq 'SomeValue'. All works fine in my DEV machine but in the customer ...
0
votes
1answer
474 views

Expanding columns in lookup fields

Using the SharePoint 2013 REST API, Can I get more than one column from the lookup column by using the $select and $expand endpoints?
0
votes
0answers
26 views

Copy File site collection to subsite with REST API & Javascript

Im trying to copy a file from between sites. Everything works out fine, but when I try to open the copy I get an error messages that tells me the document is corrupted. Ive been trying the approach ...
1
vote
1answer
588 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 ...
1
vote
1answer
23 views

How do I get the number of items in a list using REST?

How do I get the total number of items in a list based on a filter. For example: How many fruits in the SharePoint list, "Fruits", are red? I can get the items themselves like below, but I just want ...
0
votes
0answers
18 views

SharePoint 2013 REST call with CopyTo causes a not well formatted JSON Stream error

I have written an SharePoint hosted App that performs a local file copy .. first I tested my url with a valid REST call listurldir = "/appsdev/Marketing Lib; itemurl = "/Marketing ...
0
votes
0answers
33 views

Upload File as Attachment using SharePoint REST API

I have tried to upload a file to a SharePoint list item, but the server returns an error (400 Bad request): ...
0
votes
1answer
67 views

Update metadata column using Java REST

As I understand, you have to make a 3 steps to update the metadata on the file. I have uploaded a file to my document library using POST and after that made a GET and took out the metadata i need to ...
0
votes
0answers
29 views

Cannot delete attachment from a list item from a sharepoint online app

I get a success message after running the following code displayed below. However, when I go and verify the list item the file is still there. If I try the client side of this code, the file gets ...
0
votes
2answers
29 views

Problem with many $filter parameters

The query below returns a 404 error because there are two many $filter parameters. Can I increase the number of $filter parameters permitted? How can I improve this query? ...
0
votes
2answers
27 views

Access number of major versions using REST API

I managed to access the fields "EnableVersioning", "EnableMajorVersions" etc. to check whether my sharepoint lists have versioning enabled. However, I didn't find any XML element that controls the ...
0
votes
0answers
12 views

How do we consume Sharepoint API methods in SQL server?

As we know we can access the web service in SQL. But then how to consume the Sharepoint API methods in SQL? Can anyone explain with example? I wanted to access ...
0
votes
2answers
127 views

How to get JSON column “Title” in Java

I get this JSON returned and i want to select the metadata "Title" so i can change it to something else. { "d": { "results": [ { "__metadata": { "id": ...
0
votes
1answer
59 views

Create document from template with REST API in javascript

I have a document library in my SharePoint Online tenant with a custom content type with some fields and a specific document template thats puts the metadata into the document. How should proceed to ...
0
votes
1answer
28 views

curl request to access file through REST API?

Is there a simple way to use a cURL request to the REST API to access a file on my Sharepoint account? For example curl -i -H "Authorization: Bearer <some-key-here>" ...
0
votes
0answers
18 views

Setting up files to access through API?

Before learning that this forum existed, I asked this question on StackOverflow. I am a new Sharepoint (Office 365) user, and I want to use it to host a file that I can access through the REST API. ...
4
votes
6answers
3k views

Paging using REST/OData with SP 2013

I'm trying to do paging on a document library (also trying this on a list) with SP 2013 using REST/OData but I can't seem to get the skipping of items working. Here are some examples of URLs that I'm ...
0
votes
0answers
19 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. ...
1
vote
1answer
24 views

Resume upload with SharePoint Online

Is it possible to resume an upload with SharePoint Online? I've been looking at the following at doesn't appear to be supported. ...
0
votes
1answer
41 views

SharePoint App Crossdomain Rest function rewritten as a Promise

I have written a successful crossdomain call using Rest which is hosted in an Menu Action App. It returns all document item properties. Ok now I think is the time to rewrite as a JavaScript" ...
0
votes
0answers
42 views

2013 REST api $skiptoken with $orderby returns wrong number of results

I noticed some discrepancies in the number of results when getting paged list items when I $orderBy different fields. I set up a test list with 196 items, the below snippet will get items in batches ...
0
votes
2answers
40 views

cannot post a list item with a file using rest api

I am able to post files into folder using rest... but now I am trying to post files into a list and received {"error":{"code":"-1, ...
2
votes
1answer
99 views

Sharepoint 2013 REST API with user without admin rights

I'm developing a web application which integrate with the sharepoint (multi-tenant). The app is supposed to upload and download files to the sharepoint. I'm using the Sharepoint 2013 REST and trying ...
0
votes
1answer
26 views

need to update the item in the list

I have a list called revision. It has a columns called wbscode and revisionnumber. Wbscode contains code of the project(eg.pcode1) and revisionnumber is to store revision number done for the pcode. ...
1
vote
1answer
1k views

Sharepoint 2013 REST API - Shared Documents / Author Info In one Call?

We are in the process of integrating from Sharepoint 2007 to Sharepoint 2013. We have a java based application using Sharepoint 2007 SOAP based webservices. In Sharepoint 2013 we are using the REST ...
0
votes
1answer
32 views

SharePoint 2013 REST response: jasonObject.d.result is undefined but jasonObject.d is fine

I am testing a SharePoint hosted app Menu Action. I have written a REST call that brings back all the properties in a document item. I get a valid response but when I unpick my response I run into ...
0
votes
2answers
29 views

How to exclude more than one file name ending with vsdx or avi?

I'm able to grab the files, but haven't been successful excluding more than one file name ending with vsdx or avi. I need to exclude more than one file type. Any suggestions? <script ...
4
votes
2answers
345 views

REST API along with startswith and tolower function method in SharePoint 2013

I would like to bind all users into textbox autocomplete event. I done with below script but it is consider case sensitive expression while searching the results. $("#txtselectuser").autocomplete({ ...
1
vote
2answers
109 views

how to attach file to list sharepoint 2013 via REST API

I need to upload file as an attachement to list SharePoint using REST API. UPload the file to list and not to SharedDocuments. There is a COM code: ...