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
0answers
12 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. To authenticate I used the following ...
1
vote
0answers
7 views

SharePoint 2013 upload(and resize) image with REST api problem

I am trying to create an SP2013 APP, the user should be able to upload an image to a SharePoint list. The image needs to be resized before it is being uploaded. I got the upload function to upload the ...
0
votes
1answer
21 views

Retrieve list value with more than 2 look up field

I have a list 'NewsList' with columns Title, ShortDescription,Image ,Programs,Division and Tag. Here, Programs,Division and Tag are lookup fields with same list name. When I try to retrieve the ...
1
vote
1answer
511 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 ...
1
vote
0answers
23 views

Set value in web property bag using REST API

I am trying to manage web properties from property bag using REST API. It is pretty straightforward how to get the values var url = "https://site.sharepoint.com/_api/web/allProperties"; $.ajax({ ...
0
votes
1answer
32 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 { ...
5
votes
3answers
4k views

REST API filter by start and end dates using 'today'

I'm new to filtering dates with REST in SP but am trying to do something like below but am not sure how to get today's date in as a variable into the request. I don't think I'm too far off so any help ...
0
votes
2answers
24 views

REST API Sharepoint 2010 hyperlink column

I am using REST api to get data form a list. The only thing tripping me up is a hyperlink column containing a link to a word document in a library. The data is being returned like so: ...
1
vote
0answers
23 views

sharepoint workflow rest api add role assignment exception

I develop a workflow and i want to grant unique permission on item in list using sharepoint rest api ...
0
votes
2answers
20 views

Do REST only uses search index to retrieve information / do the data have to be indexed - SharePoint

I know that I can use search REST api to fetch data from SharePoint. But is there a way to get a list without having to index the list? I'm having a problem that search (Continues crawl) is to slow ...
0
votes
1answer
438 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
426 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
1answer
411 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
66 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
799 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
31 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
30 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
28 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
23 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
26 views

How to update metadata for Sharepoint 2013 rest service?

How to update metadata for Sharepoint 2013 rest service using Java
0
votes
0answers
110 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
16 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
31 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
2k 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
103 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
527 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
498 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
204 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
32 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
39 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
30 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
479 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
19 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
35 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
74 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
31 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
128 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
63 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
30 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
19 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
20 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. ...