Questions tagged [rest]

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.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

How to create online edit file link through REST API in sharepoint? [closed]

I am using the O365 REST API to display/organise files and currently xls/doc files have to be downloaded but how to edit them with the help of API?
0
votes
0answers
16 views

Generate password protect file link using REST API? [closed]

Is it possible to generate a password protected link for a file in SharePoint via the REST API?
1
vote
2answers
34 views

How can I upload a document to a sharepoint subfolder using the REST API?

I'm using the official Office365-REST-Python-Client which basically is a wrapper to submit HTTP requests. I'm looking at the documentation and have been succesfully able to upload documents to the ...
0
votes
1answer
25 views

How retrieve managed meta data field values using rest api

I have a SharePoint list which has managed meta data field& lookup field. I want to retrieve the field values and show in HTML table format using rest api.
0
votes
1answer
34 views

Retrieve Project and all it's tasks by Id

I'm new to SharePoint, I have been trying to retrieve a single Project and all its Tasks by doing the following: https://servername.sharepoint.com/sites/pwa/_api/ProjectServer/Projects('xxxxxxxx-xxxx-...
0
votes
1answer
21 views

NotFound coming back from SubmitFile

Hi I've got a hightrust application on sharepoint 2016. On development the submitfile worked although the website and the sharepoint site were both on the same server. Moving to staging and the ...
1
vote
0answers
21 views

How get task items according to current sorting using rest api

In a task list, we can move up and down items, now I want get items according to current sorting using Rest API, not by ID, Title or other fields. By default when I get the items without order option,...
1
vote
0answers
9 views

RenderListDataAsStream REST API endpoint support in SP2013 On-Prem?

Is the RenderListDataAsStream REST API endpoint supported in SharePoint 2013 On-Prem? When using POSTMAN to craft a POST REST query, I'm getting a 'NotFound' return.
0
votes
1answer
41 views

Authentication methods for SharePoint REST API

Let's say I work in company AAA and want to automatically upload documents to BBB's company SharePoint Online application https://BBB.sharepoint.com using REST API. My email username@AAA.com is ...
0
votes
2answers
17 views

Unable to send a POST request to add a new item

I am trying to make a POST request to add a new item to a SharePoint list in SharePoint online, from a classic page. I am having this code in my custom action: var url = location.href var ...
0
votes
1answer
20 views

Prevent authentication prompt on REST call in javaScript

I am making a custom "Delete item" button for my list. The issue I am facing is that when the user attempting to delete the item does not have the permission to do so, besides the API failing, I think ...
0
votes
0answers
20 views

Managing Content Type using REST API

How can i manage Content Type in SharePoint List using REST API, it's look like a very wide question, isn't it ? well what i'm looking for exactly is: How to change content type visibility option to ...
1
vote
1answer
40 views

Download multiple files at a time from using HTTP Rest API Calls

I am able to download a file from SharePoint using the API GetFolderByServerRelativeUrl. However I'm looking to download selected files at once from SharePoint. Is there any possibility to do this?
0
votes
1answer
32 views

How to update “Person or Group” column in SharePoint List using REST API

I am looking for a way to update a column of type "Person or Group" using HTTP Request of type REST. Thank you.
0
votes
1answer
17 views

Creating folder in SharePoint Library using Rest API

I want to create a folder inside "Communications" document library in below site using rest api. https://contoso.sharepoint.com/sites/SP Can you please assist on how to do that?
0
votes
4answers
63 views

How to change “Person or Group” autocomplete field to dropdown list

I am looking for a way to change the autocomplete field of "Person or Group" to a dropdown list. I checked the Lookup field solution, that doesn't suit me, i only need to transform the autocomplete ...
0
votes
1answer
53 views

Query multiple sharepoint lists with big data

Our SharePoint 2016 site consists of 14 custom lists where each list has approximately 500 list items. We wanted a way to query all 14 lists by PR NO which is common in all lists. We were looking for ...
0
votes
3answers
38 views

How to access Person or Group column in REST API Url

I am trying to access Person or Group column using REST API, but it is giving an error "BAD URL". Can someone please help me with this ? _api/web/lists/getByTitle('Plan')/getitems?$select=WRNo Here ...
0
votes
0answers
20 views

How to use Microsoft Flow update file properties in Picture type column in sharepoint document library

How could I use MS Flow to update file properties which is in "Picture" type? I search some using REST api but they are updating list item properties, how could I apply the same method in document ...
0
votes
0answers
7 views

Get all workflow tasks and their outcome associated with a SP2010 and SP2013 workflows that are operating on a given list item through JSOM or REST

I would any help that could be provided. Is this even possible (even if in separate REST or JSOM calls)?
1
vote
0answers
22 views

How do you delete tasks from Project Server via REST?

TL;DR - it appears to be impossible to delete tasks from Project Server using the REST API. Please, someone suggest something to me, because this is excruciatingly frustrating. I'm trying to delete ...
0
votes
0answers
6 views

What is returned when deleting tasks from Project Server using REST? 'Unexpected end of JSON input' from HttpClientResponse.json()

I'm working on an SPFx webpart to do some interactions with Project Server. As part of this, I need to delete some tasks. I have a function that deletes tasks using HttpClient.fetch() with a DELETE ...
0
votes
2answers
77 views

How to update SP List Default view using REST API

I am looking to update my list default view (All Items) using REST API, what i am looking exactly is to show/hide columns. When i checked the result of this request: https://m365x873105.sharepoint....
1
vote
1answer
11 views

Access Lookup Table for local custom field on Project Server?

Scenario: a user has an .mpp project file they work with locally. They set up a local custom text field to use a lookup table. They then upload and save that file to a Project Server / PWA instance, ...
0
votes
1answer
30 views

I want to get a user property using API REST

I am planning to get a user property (any information like email, id, title ... etc) using API REST, https://m365x873105.sharepoint.com/sites/BBS-support/_api/web/siteusers(@v)?@v='c:0t.c|tenant|...
1
vote
2answers
21 views

How to get better error 400 error message for list item updates via REST?

I am changing a lot of fields with a REST POST/MERGE request to a list item. When an input is wrong, is there a way to figure out WHICH field caused the 400 error? All I get is this useless response: ...
0
votes
0answers
23 views

Converting SharePoint 2010 REST code to SharePoint 2013 REST

I'm a new developer to my department and I'm tasked with converting older URI's on our SharePoint site to REST API. Unfortunately I'm completely new to this, so I'm not sure how to go about it The ...
1
vote
0answers
95 views

Restore List Items deleted via REST?

I called DELETE on an Sharepoint URL like sharepoint.client.com/sites/my_site/_api/Web/Lists/GetByTitle('myList')/Items(12345). I did not append /recycle(). GET _api/web/RecycleBin is empty. Is there ...
0
votes
2answers
18 views

What is the API, given a user ID, to tell me permissions for a user of a list item ID?

I have an application that needs to be able to use my SharePoint API to check if a user AD\USERNAME has access to see a list item. I have the server relative URL of the list item, and the object ...
0
votes
0answers
21 views

Check if a document is locked by a user in a Flow

I am trying to check if a document has been locked for editing in a Flow. I found a way to do this from this blog https://veenstra.me.uk/2019/09/26/microsoft-flow-handling-file-locks-in-sharepoint/ ...
0
votes
1answer
26 views

Get all subfolders and files in one call and limit fields returned, plus sorted alphabetically

REST get all subfolder and files in one call, limiting the fields returned and sort by folder or file name. I currently have a URL at: https://domain.sharepoint.com/sites/subsite/_api/Web/...
1
vote
1answer
21 views

Page create with REST missing CEWP

I'm trying to create a publishing page following this thread and the page is being created in the library. Basically using creating a template <%@ Page Inherits="Microsoft.SharePoint.Publishing....
0
votes
1answer
24 views

Update REST query based to get items from List in SP 2013

I have a query in REST API which is : var i = _spPageContextInfo.webAbsoluteUrl + "/_api/web/Lists/GetByTitle('Pages')/GetItems(query=@v1)?@v1={"ViewXml":"<View Scope='RecursiveAll'><Query&...
0
votes
1answer
14 views

How undo the “revoke access” in yammer applications

i cloned a spfx project from https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples/react-yammer-api and it basicaly search for a name of the user in yammer and return some informations ...
0
votes
0answers
22 views

SharePoint threshold limit Not working for indexed Columns

I am Facing A issue with SharePoint Rest Query Requestype Column is indexed , single Line of text , Has Three types of only (Values and Count) Credit- 3787 One Off - 13019 Reccuring - 6202 I am ...
1
vote
1answer
19 views

Rest API to get different data

I have the following code to get values of a column. function GetKPIS(EstruturaKPI){ jQuery.ajax({ url: "SITE/_api/web/lists/GetByTitle('KPI')/items?$filter=Title eq '" + EstruturaKPI + "'", ...
2
votes
0answers
203 views

Getting list of followed sites for a specific user with Graph API

There is an undocumented API /_vti_bin/homeapi.ashx/sites/followed that returns the list of followed sites for the currently logged in user. This one does not seem to be useful due to permission-...
0
votes
1answer
16 views

People / Group column looping through nested data

I am using Javascript / Jquery to pull list data. One of the fields is Author, which is a group / people field that allows for multiple users. I get the data, and I test if there is data in the ...
0
votes
1answer
21 views

Sharepoint Foundation REST interface, updating an object fails

I'm using the REST interface detailed here -https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ff521587(v%3Doffice.14) As a proof of concept, I'm trying to access an ...
0
votes
3answers
608 views

How to resolve TypeError: Converting circular structure to JSON when creating SP list item?

Trying to create a list item in SharePoint using REST, getting the following error message: Uncaught TypeError: Converting circular structure to JSON Am I missing something obvious here? $.ajax({ ...
1
vote
1answer
36 views

How to get the User Principle ID based on the Email Id

How to get the User Principle ID based on the Email Id provide in the textbox?
1
vote
0answers
25 views

SharePoint Online (Office 365): REST API is not working from yesterday (19th September 2019)

Since from yesterday 19th September 2019, Simple Rest URL Select=* is not working. Note: list is having 12 person or group/lookup column excluding created by & modified by. However it was ...
0
votes
1answer
28 views

When Multiples are Allowed - Finding the IDs of the People Selected in a peoplePicker

On another page, I have a peoplepicker saving to SharePoint (when only one person can be selected). I used this tutorial (https://www.c-sharpcorner.com/article/custom-people-picker-in-sharepoint-...
0
votes
1answer
31 views

REST call to SharePoint Online from Designer Workflow

I have been trying to get user manager using REST call from SharePoint Designer [https://site_url/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v=%27i%3A0%23.f%7Cmembership%...
0
votes
2answers
44 views

How to save the value of a Yes/No Checkbox via Sharepoint 2016 REST API onPrem?

How do you save checked/unchecked for sharepoint 2016 on-prem via the REST api? I have a couple input text boxes saving text, but I'm can't save yes/no for cbAttending, I can't seem to get the value ...
1
vote
0answers
22 views

REST API - File moved - Origin server relative url

When a file is moved in SharePoint, I can catch the event using the GetChanges API. _api/web/lists('listid')/GetChanges My issue is that I need to retrieve the origin and destination server relative ...
0
votes
0answers
18 views

Accessing SP List using Rest-APi

var url = serverRelativeUrl + "MyServer/_api/web/lists/GetByTitle('Test')/items"; var httpRequest = $http({ method: 'GET', url: url, crossDomain: true, ...
0
votes
0answers
13 views

consume sharepoint REST web services from html

I want to access list items and files in document library in a sharepoint OnPremise site from my HTML application hosting in another server without any server side coding. I mean i want to ...
0
votes
1answer
96 views

How to Create a Multiple People Picker field in a HTML form using JQuery

I want to create a People picker field in a HTML Form, which should accepts multiple people names, with comma or semicolon separated, Usually I create a input text field in the HTML form and then ...
0
votes
1answer
64 views

409 conflict error when deleting multiple attachments using PnP js or REST

I am trying to delete multiple attachments from list item as below private _deleteOneByOneAttachment(ln: string, id: any, file: any):Promise<any>{ let item = sp.web.lists.getByTitle(ln)....