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

View with approval status = approved doesn't show the current approved version if checked out

We have an official doc repository to comply with a government regulation (showing strict change control procedures). REPRO STEPS: Create a SPO doc library that requires approval, versioning, check ...
0
votes
0answers
17 views

Update Ms Project tasks using Rest API

Is it possible to update MS project tasks (Microsoft Project server on-premises) using Rest API? or CURD operation for Microsoft project tasks?
0
votes
0answers
26 views

REST API to create alerts

I tried creating an custom alert using _api/web/alerts/add. But getting unknown error. I referred this Create list alert using REST for creating an alert. Does the the alert functionality exposed ...
1
vote
0answers
17 views

Upload a DOCX file in a SharePoint Library using REST

I Am trying to upload a word file in a SharePoint document library in SharePoint 2013 environment. File is uploaded successfully every time but it is corrupted. string siteurl = "http://myurl/sandbox/...
0
votes
2answers
36 views

What are the exposed REST api in Discussion board?

I am trying to utilize REST api to get/set discussion list fields. I am facing issue for following fields, I am able to set below fields using CSOM but I want to set it using REST api because I am ...
0
votes
0answers
10 views

What do I have to change so that sharepoint properly decodes my base64 document?

I am currently trying to upload a file from Business Central to SharePoint using the REST API. For the sake of simplicity, I first took a picture. I converted this image to BASE64 and attached it to ...
0
votes
1answer
31 views

Update Document Library Title Using REST

I am trying to update the Title of an existing document library using REST but getting this error The parameter __metadata does not exist in method GetByTitle. my REST endpoint is /_api/web/lists/...
0
votes
1answer
22 views

API Call to create folder with %-Symbol either fails or doesn't decode

I'm implementing REST Calls to Sharepoint in Java. I create folders by sending POST Requests to /_api/web/GetFolderByServerRelativeUrl('/sites/MySite/Folder/')/folders/add('NewFolder') This creates ...
0
votes
1answer
30 views

How to get version history in SharePoint 2013?

I made a comments column, enabled "Append changes to existing text", and enabled "Create a version each time you edit an item in this list?". How can I retrieve all versions so I can get all comments ...
0
votes
2answers
33 views

Get Display names of Direct reportees in Office 365

I need to get display names for all the direct reportees under a manager. I am using below code to get direct reporteees using rest in SPFx using react. public componentDidMount(){ this....
0
votes
1answer
27 views

How to fetch all data associated with a SharePoint web part using Microsoft Graph API?

I am wanting to fetch all of the associated data for the web parts of a SharePoint Page using the Microsoft Graph API. Is this possible through the beta or v1.0 API? I can't seem to find any ...
0
votes
0answers
29 views

Using SharePoint's REST API to $expand a folder's people field

I can't quite remember how to expand a field of a folder or file. Example: I can do something like Folders/ListItemAllFields/RoleAssignments/Member to expand the role assignments, but I cannot do ...
0
votes
1answer
26 views

Sharing a folder using sharepoint Rest API

Do you have an idea how to share a folder with a list of users(list of emails) using Sharepoint Rest Api from a java application? Thanks.
0
votes
1answer
26 views

Can you use REST API to upload photos from your phone onto SharePoint 2013?

I need to develop a mobile web application that allows users to upload photos onto a SharePoint photo library or document library using REST API. For some reason, users can upload photos from their ...
0
votes
2answers
34 views

Upload file to SharePoint private group via REST API

I want to know how to upload files to SharePoint private Group via REST API. How to get SharePoint private Group folder? How to upload file to this private Group folder? Here is link of my private ...
0
votes
1answer
23 views

Add a new choice option to a choice field with write-in using REST without erasing existing options

When a folder is created in a library I would like the Name of the folder to populate a choice field. I would like to use REST in Power Automate to add a choice to a choice column with write-in ...
0
votes
1answer
20 views

How can i get status of workflow via rest api - whant to know when its completed,failed etc

Is there a way i can get the status of my running workflow for a particular record? I; working on a form that has a submit button and would like to enable it only when the status of the workflow is ...
0
votes
0answers
12 views

Manipulating the search schema through HTTP call

Using SharePoint Online, I'm looking for a way to provision through HTTP call (rest or web service) search schema configuration. Especially, I'd like to map some RefinableStringXX to custom column ...
0
votes
0answers
36 views

Error updating document metadata with REST Flow

So I am beating my head against the wall and have done more searching on SE than I ever cared to. I am trying to update the Modified By field for a document in a Document Library on a Sharepoint team ...
0
votes
1answer
162 views

Update/Add choices of a Choice field of SharePoint list using REST API

I want to update the options of the Choice field of the SharePoint List. Is there any way to update the choices using the REST API? Below is the code i am using: $.ajax({ url: "https://ts....
0
votes
0answers
21 views

Share Object method child items - Sharepoint rest api

I'm using the SP.Web.ShareObject method to grant access to a folder for an external user and it works ok, but the user can't see the files inside this folder. Here's the body of my call : { "url":"...
0
votes
1answer
25 views

Unable to fetch lookup field values using REST api

I am using REST api to fetch data from a SharePoint list. I am able to get data using this query: requestUri = "/_api/lists/GetByTitle('Data')/items?$select=ID,Title,Department/Title&$expand=...
1
vote
1answer
39 views

Sharepoint Rest Api ShareObject method

I want to share a file/folder with users through a rest call. The Sharing permission of the site has already been set. I found out about SP.Web.ShareObject method but I'm getting a "Couldn't resolve ...
1
vote
1answer
23 views

REST API in 'Send a HTTP Request' returning an error

I'm trying to return an additional SP column in a Flow I've inherited. I've checked the name of the field in the address bar and it's showing as 'BTG%5Fx0020%5FPolicy%5Fx0020%5FOwner'. I've added it ...
1
vote
0answers
25 views

Rest API Performance issues while loading data from multiple lists

We are showing data in dashboard from multiple SharePoint lists using RestAPI Get calls and there are multiple nested ajax calls. Due to all those, page is taking approx 2 min. for loading. we want ...
2
votes
1answer
23 views

Sharepoint rest api getuserprofilepropertiies with the value of another profile property

So I use http://mysite.com/_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(AccountName=@v,propertyName=%27empID%27)?@v='someaccountname' This works fine for me as I have the correct ...
1
vote
1answer
36 views

How to securely call an external API from SharePoint?

We have a need to connect to some external APIs from SharePoint. I've seen some online articles about calling APIs that are secured with Azure AD, however, in my case I have no control or influence ...
0
votes
1answer
28 views

getting file error or bank when adding to sharepoint list attachment

I am getting a data serialize I think that is causing an issue with POST request, its getting success but the pdf or any file when I try to view from the source it generates error or blank image. How ...
0
votes
0answers
12 views

Setting value of lookup field without lookup Id

Using REST, I am trying to create an item that has a lookup column named Role. In this column's settings I am referencing the Title field. I can create a new item using "RoleId" as shown below, ...
0
votes
1answer
32 views

API issues downloading image, empty file or corrupted image

What I'm trying to accomplish is this. I'm working on an integration web app that lets our techs pull data from our crm and sharepoint. What I'd like to be able to do is display images held in ...
0
votes
1answer
45 views

REST api call using method getbyemail for user in a group returns error “Cannot find resource for the request getbytitle”

Users exist in sharepoint group: If I do simple GET request in browser: https://mycompany.sharepoint.com/sites/testsite2/_api/web/sitegroups/getbytitle('TestGroup')/users/getbyemail('john.theuser@...
0
votes
1answer
35 views

Rest API call return 0 items in list even there's data when using App deamon model

In a list I have some items. I want to call Rest api to list these items. When I call the api url from the browser, I get the expected result (items are returned). When I call the api from Insomnia ...
0
votes
0answers
35 views

Seek operation error when uploading a file using REST

I am attempting to upload a text file to a SharePoint 2016 document library. The text file contains a single-line string that represents JSON data: {"User": "JANE A DOE","AssignedTo": "JDOE","...
0
votes
0answers
19 views

CAML filter, RowLimit options not working with Spfx solution

This question may look duplicate but actually i didn't find any proper solution to this. Issue: Threshold error when I am getting items from list more than 5K even after applied filters with indexed ...
1
vote
1answer
51 views

Update person field (multiple selection) using JavaScript without PnP

I am trying to create an SPFx web part using SharePoint 2016. When adding PnP to SharePoint 2016, it's giving me errors and not working like when I add it to a SharePoint online SPFx web part. How can ...
0
votes
0answers
15 views

Create folder in attachments on costum list

I despair slowly. I want to create a folder via JavaScript and rest api in the attachments of a custom list. but I can't find an example on the internet. Who can help me? My List Name ist "Reviews" ...
0
votes
0answers
31 views

REST API not finding Item just created

I have a list that if certain conditions are met will create 1 item each in 2 separate lists in a different SharePoint site collection. I have enabled the 'recursive workflow' successfully in a ...
1
vote
1answer
21 views

How to add fields like Text1, Text2 or Number1 Number2 to Formula in Enterprise Custom Fields for Reporting in Project Online/ Project server

How to add fields like Text1, Text2 or Number1 Number2 to Formula in Enterprise Custom Fields for Reporting in Project Online/ Project server. In formula I am not able to find the property Text1 or ...
0
votes
1answer
66 views

Access home page of a sharepoint online site from code

I have a sharepoint site hosted at: https://xxxxx.sharepoint.com, which has a subsite named abc when I type in https://xxxx.sharepoint.com/abc in the browser, it redirects to the welcome page of the ...
0
votes
1answer
60 views

Excel file is not checked in after uploading to Sharepoint with Python

I have taken the following code from other post. This is very good and working fine. import requests from requests_ntlm import HttpNtlmAuth session = requests.Session() session.auth = HttpNtlmAuth('...
0
votes
0answers
32 views

Check user authentication from .NET Core API

I need to create a series of Add-Ins for SharePoint online, these will have to call a .NET Core REST API. How can I validate that the call is being made from an authenticated user on the given site?
0
votes
1answer
99 views

SharePoint REST request for 'breakroleinheritance' with special character in folder name

I am making a REST request to SharePoint for breaking the role inheritance for a folder. It's working fine when a folder does not have any special character in it's name. But when I add special ...
0
votes
0answers
23 views

When to use JSOM over REST API

Is there any specific scenario where I should use JSOM instead of REST while doing SharePoint development? I want to know is there any limitations for SharePoint REST API when comparing to JSOM.
1
vote
1answer
55 views

Get Predecessors of a Task along with its Start - Id and End - Id using a single request

My requirement is to fetch all the task links of a Project with Start - Id and End - Id of every task link. Currently I am only able to fetch LinkId, ProjUid, Lag and Dependency type using REST API: ...
1
vote
2answers
207 views

SharePoint Online sitegroups REST query in graph API

I have a question regarding quering site groups via REST Graph API instead of SharePoint REST API. Currently I need to query SharePoint REST API to find implicit groups (*Visitors, *Members, *Owners) ...
0
votes
1answer
97 views

Creating repeating all day events with Flow

I'm using a Flow to copy events from a calendar in one site to a calendar in another site. It is triggered on Item created or modified, then puts a rest call to get the item information (there are ...
1
vote
1answer
153 views

Flow to copy calendar items from one site collection to another

Due to lack of a built-in Modern Calendar interface and our corporation's restrictions on what we can do within the sites in our tenant, I'm trying to build a Flow in Power Automate that copies ...
1
vote
2answers
305 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
102 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
141 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-...

1
2 3 4 5
45