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

Is It Possible to Have Optional $select or $expand in REST API Calls?

For example, if the url for the GET request is this: url: domain.com/_api/web/lists/getbytitle('Thing')/items?$select=*,Something/Field1A&$expand=Something/Field1 And if you're making multiple ...
0
votes
2answers
37 views

Get list items using REST - Only the first folder is returned

I am using following to display all the items in content query webpart but only the folder is displayed. What am I missing? Sharepoint 2013 <script type="text/javascript" src="https://ajax....
5
votes
1answer
49 views

What is the json syntax to insert an item to a list?

I'm trying to insert an item to a list and I keep getting bad request so it's probably because my json is wrong? Here's what my json looks like: { "securit_x00e9_":"test", "column":"test", ...
0
votes
2answers
44 views

How to login into Sharepoint Office 365 via REST API

I've been working for a while with SharePoint 2010 via REST API in my Java project. For example, to list items under some directory in my SharePoint storage, I was doing like this: NTCredentials ...
1
vote
1answer
20 views

REST Add List Item of Custom Content Type

In my SharePoint add-in, I have already utilized the REST call for creating a new list item: $.ajax({ url: "../_api/web/lists/getbytitle('Example List')/items", method: "POST", ...
1
vote
1answer
41 views

Upload multiple files with REST API in document library with custom properties

I am trying to upload multiple documents to the document library, I followed the answer posted on this link, I am able to upload the documents but I have some custom columns in the library, please ...
1
vote
1answer
1k views

401 Unauthorized Exception with SharePoint search rest API

Note: Please do not make my question as duplicate, still i haven't get any proper answer for my question. I am getting 401 unauthorized error when calling a sharepoint search rest api (/_api/search/...
3
votes
2answers
2k views

Upload multiple files using rest api

I am trying to write code to upload multiple files using SP2013 REST API. I referred the MSDN article "upload single file using REST API". But I am having problem when I modified the code to upload ...
1
vote
1answer
19 views

Sharepoint list meta data and query all the meta data for the list item using REST

I am trying to programmatically download the sharepoint lists and list item content using REST api. Here is the approach I am taking. Get all the lists in sharepoint using lists end point _api/...
0
votes
0answers
16 views

Create Folder with Arabic Name using ListData.svc in SharePoint 2016

** Create Folder with Arabic Name using ListData.svc in SharePoint 2016. ** I am Using ListData.svc to create folder: // my C# code var path = pURL + sourceFolder + "/" + folderName; var ...
0
votes
0answers
28 views

Anonymous Access to Rest Api query sharepoint online

I´m calling lists via AJAX like this: var url = "https://mysite-public.sharepoint.com"; url: url + "/_api/web/lists/getbytitle('mylist')/items", method: "GET", headers: { "Accept"...
0
votes
2answers
24 views

REST API Queries - Expand on Field but Not to Limit that Field Only

I'm trying to build a query to retrieve list items using the REST API. Is there a way to expand on certain fields, but still bring back every other field? This is for use within a SharePoint-hosted ...
1
vote
2answers
52 views

How to Save Manged Metadata value in List using JSOM or REST…?

As i have understand it by googling a litle, that its not posible to use REST for Taxonomy fields ? I was not able to update my list doing it by http REST . But it should be posible with JSOM. How ...
1
vote
2answers
27 views

How to update List item with Managed Metadata column using REST or JSOM

How can i update List item with Managed Metadata column using REST or JSOM? Any good sample or suggestion will be appriciated....
0
votes
1answer
226 views

Remote authentication using REST

I am trying to access SharePoint online using REST API's remotely. Office 365 Smart links are enabled for the site. As per this blog I don't receive wsse\\:BinarySecurityToken in the response. My code ...
0
votes
2answers
42 views

Null Lookup column getting from REST API with Expand it give no key for expanded column

I am using REST API to for getting data from SharePoint. I have one list like category with three column Title and two lookup name like childcategory, parentcategory. I have some data in which there ...
0
votes
0answers
27 views

while adding user to SP group I am getting error but the user is added when i am refreshing the group

I am facing this issue while trying to add users to SP group using REST and Jquery. While adding the user prompt comes asking for username and password, after I enter my credentials it does not ...
-3
votes
1answer
34 views

SharePointREST API unread/mention count

I like to retrieve unread/mention count using REST API but I do not know how to begin? Can anyone tell me how should I begin and do I need any credential when consuming the REST service?
0
votes
1answer
30 views

How to post value in multiple user field via SharePoint REST API

I am new to SharePoint 2013 app develpoment, so I'm having trouble with some easy (I think it should be easy) REST Call. I got a list for issue tickets, which contains a user field column. In my SP ...
0
votes
0answers
31 views

Update Multi Lookup Field in Document Library Using REST

I'm using below code to update multiple lookup fields of document library Code: var itemProperties = { '__metadata': { "type": "SP.Data.WP_x005f_DocumentsListItem" }, 'Technology_StackId': { "...
0
votes
1answer
22 views

Group query to get specific order

I use this query to populate my gallery: var queryGallery = "$select=Title,Description,Enlace,EncodedAbsUrl,Categoria/Title&$expand=Categoria/Title"; $.ajax({ url: url + "/_api/web/lists/...
0
votes
1answer
33 views

Unauthorized Error using web api with REST in different site collection the add-in isn't deployed at

I'm trying to write a sharepoint 2013 add-in that reads certain list info from a bunch of site collections i get first and write into an array, however whenever i try to access any sitecollection but ...
1
vote
1answer
835 views

How is ViewsRecent in search results calculated?

I need to find the top 3 visited webs for the last 4 weeks and I need/want to do it via the REST search api. This is SharePoint 2013. The value ViewsRecent returned by a search query seems to be what ...
0
votes
0answers
12 views

I cannot upload filename with special character in onedrive graph api [closed]

I cannot upload filename with special character in onedrive graph api. Example eeee (756 bytes).txt
0
votes
0answers
7 views

Error from calculated field when updating document set immediately after creation using REST

BACKGROUND: I have created my own document set creation form as it's not really an option to customize within Designer. The route I use to create the document set is directly based off of Vadim's ...
1
vote
4answers
3k 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 "...
1
vote
2answers
1k views

Getting Calendar items on Office 365 using REST API

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 trying to achieve is to ...
1
vote
2answers
44 views

Has anyone uploaded files to sharepoint 2013, using REST, or other methods from a server.

I need some help with Server to Server upload. (not from the browser) Has anyone uploaded files to sharepoint 2013, using REST, or other methods from a server (java/coldfusion/other). I am getting a ...
0
votes
1answer
857 views

Is it not possible to add user to SharePoint group using REST for cross domain calls?

I am trying to add user to a SharePoint group in a "SharePoint Hosted App". First I am checking whether the user exists in that particular group or not. If not, I am trying to add that user to a group....
0
votes
1answer
47 views

Troubling uploading file from (coldfusion) server into sharepoint with Rest

Sharepoint is giving me this message which I can't interpret. "Microsoft.SharePoint.Client.InvalidClientQueryException","message": {...see below...}" is not valid."}}}" URL: https://{...
0
votes
1answer
2k 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
2answers
1k views

SharePoint 2013 Online adding a user to a group using a workflow

I am trying to add a user to a security group via a SharePoint 2013 workflow I am currently trying to do this using the Call HTTP web service action and I have 3 dictionary's built. All of this is ...
1
vote
1answer
923 views

Authentication using Sharepoint Online REST API to create Task for Organizational Site

I have a Office 365 Organizational SharePoint Online Account. I want to Add Few Tasks in one of the list programmatically. I saw options of using JavaScript API or hitting the REST URL's https://...
0
votes
0answers
19 views

SharePoint 2013: What is the fastest way to retrieve all files and folders in a library with many items?

At first I used GetItems, but retrieving 5000 items was really slow even for indexed views. (around 2 minutes) Now I came back to use what I know retrieves them really fast (less then 10 seconds) - ...
2
votes
1answer
242 views

Get value from JSON from SharePoint REST [closed]

If I use below line, I get output='1'. data.d.results[i].ID; But instead of giving hardcoded ID, Is there any way to pass by variable? I already tried like: var array=["ID","Title"]; data.d....
0
votes
1answer
44 views

How to create a Rest wcf service on SharePoint?

I'm trying to make a WCF Rest service inside SharePoint. but it doesn't work and I get 404 :( I set the svc file like that <%@ ServiceHost Language="C#" Debug="true" Service="MyNamespace....
1
vote
1answer
70 views

Is it possible to update Managed Metadata site column using REST API / SharePoint Web Service?

I am having a requirement where I need to update the Managed Metadata column value using REST API or SharePoint Web Service. I have gone through this and this and this post but this won't help me ...
2
votes
1answer
857 views

Get documents and folders in SharePoint 2010 list's ROOT folder with REST

There is a question about getting files/folders in some SharePoint folder. There is advice to filter list items by parent folder path. But how can I list files/folders in the List itself? With REST I ...
1
vote
1answer
56 views

Update MetaData column for document library using REST C#

I am trying to update the Metadata information for a file in Document Library. I am following this article. The REST End point used in given article is var restSource = appweburl +"/_api/SP....
1
vote
1answer
34 views

How can I list all document libraries under a site using REST API?

I am new to Sharepoint. I discovered that Sharepoint 2013 and later supports the REST interface. I was trying to query the REST API to find all the document libraries under a given site. I tried GET ...
2
votes
1answer
809 views

REST api to get the value of richhtml field without tags

I'm trying to get a field named Content from list which is of type RichHtml. When I try to get this using REST api call, I'm getting the content the html tags. How can I get the value only from this ...
1
vote
1answer
31 views

REST api postquery with SortList not working

I'm using jQuery ajax POST calls to query against my search index. That is working. I tried to add SortList following the documented model here which is basically adding the following to my query ...
0
votes
0answers
16 views

rest api delete folder deletes the desired folder, the document library and all sibling folders

This first call deleted the folderName AND the libraryPath and all folderName siblings (Everything in libraryPath) [...]_api/web/GetFolderByServerRelativeURL('#urlencodedformat(arguments.libraryPath)#...
2
votes
3answers
1k views

How to create a folder in Sharepoint using Java and RESTFul API?

This is my Sharepoint site http://sp2k13/sites/ifsp/ and I would like to create a folder using Sharepoint RESTFul API with Java. I have already gone through Working with folders and files with REST ...
0
votes
2answers
118 views

Retrieve lookup field value using REST API

In my sharepoint site I have another sub-site. On the top level site there is a list to store 'document type'. Within the sub-site I have a document library which looksup the 'document type' list. I ...
0
votes
0answers
18 views

REST search api working with the results

Working with this documentation and jQuery ajax to use the search features of the REST api. I'm making progress and it is starting to make some sense. I'm trying to figure out how to work with the ...
10
votes
4answers
23k 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 ...
2
votes
1answer
2k views

Retrieving web part ID (GUID) with SharePoint REST API

I need to get the ID of a web part on a page before I have redirected the browser to the page. The reason for this is that I need to update a field value that contains web part settings, which are ...
0
votes
0answers
22 views

Search REST API and obtain a document's GUID?

Using the SharePoint REST API we can obtain a document's GUID, however the SharePoint Search REST API does not automatically provide a document's GUID. Is there a way to obtain the GUID of a document ...
2
votes
4answers
4k views

Force users to enter document metadata before creating a new document in Sharepoint 2013 document library?

First off, I'm new to Sharepoint. With that out of the way, I have a document library based on a custom content type. When working with Sharepoint document libraries some users find the document info ...