Questions tagged [sharepoint-rest-api]

Using the Representational State Transfer (REST) interface provided by SharePoint. SharePoint has multiple APIs based on technology sets. This tag should be used when the question is specific to SharePoint's REST API to differentiate from other SharePoint APIs and customizations.

You can perform basic create, read, update, and delete (CRUD) operations by using the Representational State Transfer (REST) interface provided by SharePoint.

The REST interface exposes all of the SharePoint entities and operations that are available in the other SharePoint client APIs. One advantage of using REST is that you don't have to add references to any SharePoint libraries or client assemblies. Instead, you make HTTP requests to the appropriate endpoints to retrieve or update SharePoint entities, such as webs, lists, and list items.

For more details on the SharePoint REST API, see
- https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/complete-basic-operations-using-sharepoint-rest-endpoints
- https://learn.microsoft.com/en-us/sharepoint/dev/apis/sharepoint-rest-graph

see also: , ,

203 questions
0
votes
1 answer

How do I use SharePoint Rest API in C# .NET Framework using Client ID and Client Secret?

Is there any way to authenticate an application with SharePoint rest API like Graph API using Client ID and Client Secret? I wanna use SharePoint rest API in my console application.
0
votes
2 answers

Azure Data Factory 401 error when calling GET request on SharePoint online API

I am trying to move files between Azure Data Factory and SharePoint Online. I have some test data files in a SharePoint location and I have a pipeline in Data factory containing a Web Activity and a Copy data activity. The copy activity then links…
0
votes
1 answer

Why is the Sharepoint Site Owners group missing from Site Permissions?

I have a dev Sharepoint site with unique permissions (and fake users seen below). In the SharePoint manage access blade, the permissions appear as such: However, when I click through to the Advanced Permissions link just below that, the permissions…
0
votes
1 answer

Create a site collection app catalog using graph or sharepoint rest api token

Site collection app catalog can be enabled using SharePoint Online Management Shell or Office365 CLI as mentioned here. is there any other way if I have Microsoft graph token or SharePoint rest api token with correct permission ?
DevÁsith
  • 1,072
  • 12
  • 38
0
votes
1 answer

Microsoft Graph API url vs SharePoint ALM REST API

Microsoft graph urls and SharePoint rest api urls are like this https://graph.microsoft.com/v1.0/sites - https://{tenant-name}.sharepoint.com/_api/v2.0/sites https://graph.microsoft.com/v1.0/drives -…
DevÁsith
  • 1,072
  • 12
  • 38
0
votes
1 answer

enable/disable external sharing in SharePoint and Teams using Rest API?

Can we enable/disable external sharing in SharePoint and Teams using Rest API? i am not getting any documentation related to this query.
amyy
  • 171
  • 3
  • 13
0
votes
3 answers

Call SharePoint REST API from Teams Tab

I have a Teams Tab application that needs to do some manipulations with the team's site. The User needs to be authenticated, and all operations are executed on behalf of the user. Calling the graph API is somewhat documented, I have found a good…
0
votes
1 answer

SPFX - Best way to store custom settings file when developing extension app

I am developing SharePoint framework Extensions and need to store settings json file which can be configured anytime by admin/privilege person.(such as a component layout settings/app settings). What is the best way to store such a settings file…
0
votes
0 answers

How to update multiple documents meta data in sharepoint using Sharepoint Rest API

How to update multiple documents meta data in sharepoint using Sharepoint Rest API Ex: 4 documents exist in sharepoint, i wanted to update its columns with some values like "Status": "Active". when i did loop though it works for2 records update and…
0
votes
2 answers

REST calls vs. JSOM calls from a sandbox solution to a SharePoint 2013 Site

I have an Angular 2+ application that happily execute calls via REST API to a SharePoint 2013 hosted in a different server. It works quite good but unfortunately for a very specific need (discussion boards) it's not enough. Here what I am…
0
votes
1 answer

Building a hierarchy tree for three connected lists inside sharepoint online using JavaScript

We have these linked sharepoint lists:- Department list Category List >> has a lookup field to the Department list. Asset list >> has a lookup field to the Category list. so is there a way using JavaScript + sharepoint rest api to build a…
0
votes
1 answer

REST API to get property values/title etc for sharepoint page webparts

Is there an API that returns the property values for webparts in a page (for classic sites as well as modern sites)? We would like to index the static text properties associated with the web part (for example the text associated with a link web…
0
votes
1 answer

Limit sharepoint search API results to some geo locations

In a multi geo environment I would like to execute a SharePoint REST API search and limit it to some geo locations only as described in the microsoft multi geo documentation. I have tried the GET as well as POST requests, but all settings in my…
0
votes
1 answer

What is the maximum size of Sharepoint search API result I can have?

I see this on Microsoft official docs, but it only talks about startRow. I want to know the size limitation of the Search result items. Is it also 50,000?
0
votes
0 answers

How to have an HTML Input Field not Send a String Value if Left Blank - send nothing

I have an issue and want to see if this thought is possible. I created a project tracker where an individuals can load their project information (office, project title, status, date, assigned to., etc). The form works great. I have another form,…
TonyT
  • 407
  • 4
  • 19