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)

3
votes
2answers
243 views

Updating SharePoint item using REST API from outside of SharePoint

I need to update (CRUD) SharePoint list items from a stand alone application outside of SharePoint. This application can only use JavaScript to call SP. Deploying it as an app on SharePoint won't be ...
0
votes
0answers
147 views

'Cannot find resource for the request' error using REST

I am trying to use REST to copy documents from one place to another. I would ideally like to do this through a SPD 2013 workflow, but have also been trying to use jQuery as well. I have been ...
1
vote
1answer
236 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
0answers
119 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 ...
1
vote
0answers
212 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({ ...
3
votes
0answers
128 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
66 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: ...
0
votes
1answer
40 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 ...
0
votes
2answers
33 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
0answers
116 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 { ...
1
vote
1answer
156 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 ?
2
votes
3answers
89 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 ...
0
votes
1answer
38 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
1answer
40 views

Rest webservices in SharePoint?

Any documentation to learn REST Webservice in SharePoint ? I am trying to create REST webservice for SharePoint.
0
votes
1answer
112 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
0answers
38 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
37 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
100 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 ...
2
votes
2answers
213 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 ...
0
votes
3answers
242 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
73 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
0answers
83 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
84 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 ...
1
vote
1answer
148 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 ...
1
vote
0answers
92 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
83 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
0answers
106 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
1answer
204 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
28 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
169 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
2answers
56 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
1answer
117 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
1answer
59 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. ...
0
votes
2answers
44 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
1answer
241 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 ...
1
vote
1answer
52 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
0answers
260 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
1answer
95 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
2answers
90 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, ...
0
votes
1answer
31 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. ...
0
votes
1answer
110 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
101 views

Csom or rest to verify user

I am uploading a spreadsheet to a task list using visual studio - the sheet will usually have users that are misspelled or incomplete and SharePoint throws a not a user error. I have to go back fix ...
0
votes
0answers
27 views

Getting row data from SharePoint Analytics

How can I get row data from SharePoint 2013 analytics? Is there any api to use by sending query or something and then get the row data?
0
votes
2answers
40 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 ...
0
votes
1answer
22 views

How do I get results to open in new tab?

I've made several edits to this line, but they do not appear to be working. html = html + "< a href='" + this.LinkingUrl + target="_blank"+"'>" + this.Name $.ajax({ url: ...
3
votes
1answer
79 views

Reserved folder names sharepoint online

I'm currently running into an issue with creating a folder titled "large_files" When using the Web UI in OneDrive for Business I've created the following folder ...
0
votes
1answer
35 views

Is there a way to expand and filter using a substring in the Sharepoint API?

I'd like to expand files and filter using a substring like so: Is it possible? ...
0
votes
0answers
115 views

Filter calculated columns in sharepoint 2013 using rest api

I am using Rest Api to filter values. Can i apply filter on Calculated columns. Basically the calculated column returns a string . Her is How my View Looks My REST API CODE IS like this ...
1
vote
0answers
44 views

How to associate an existing site column to a list using the REST API

In SharePoint 2013, I have a site column that already exists and I'm trying to associate it to an existing list using the REST API. I found examples on adding a new column to a list using the REST API ...
0
votes
1answer
118 views

How can I manage folders and files using rest api?

How do I use rest API to pull data from folders and files? Each set of files are associated to one particular folder. I'm not sure how the are associated and I need to pull certain fields associated ...