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
1
vote
1 answer

accessing sharepoint REST apis using msal throws 401

If i go to https://developer.microsoft.com/en-us/graph/graph-explorer# and use URL like: https://graph.microsoft.com/beta/sites/4development106.sharepoint.com:/sites/DBSchenker:/lists/OEC_Docs/items I can see request succeeds. Now if i use the…
Vik
  • 8,721
  • 27
  • 83
  • 168
1
vote
1 answer

How to use sharepoint online search api as app-only

I'm trying to use the sharepoint online search api (/_api/search) from an application. Adding it from the Azure portal I see the search is only in the "delegated permissions" section. When I ran it in testing with the user login and approve it it…
1
vote
0 answers

Sharepoint : AADSTS70000: Authentication failed. Delegation blob grant is malformed

When trying to get the access_token using the refresh_token for my SharePoint site using WebRequest i get the following error "AADSTS70000: Authentication failed. Delegation blob grant is malformed". I am making a POST call with the following…
0
votes
1 answer

SharePoint Server Getting WorkflowInstanceID with REST API

Company is using SharePoint Server 2013 and i'm trying to write a service for another application which people can track workflow status. What i try is getting Workflow Instance ID with; /_api/web/lists/GetByTitle('Library…
0
votes
0 answers

SharePoint Rest API - GetChanges does not recursively show child items when a parent folder is copied in SharePoint

Normally adding a folder via drag and drop will include all sub folders and files in the folder as separate changes in the GetChanges response. This doesn't seem to be the case when copying a parent folder in the SharePoint UI. Instead a single…
jbyt1
  • 1
0
votes
1 answer

InvalidToken using SharePoint v2.0 REST API

I am trying to make CRUD operations of the TermStore using the v2.0 REST API. But I am having problems with the token. I can generate the token correctly but when I try to use it, for example on a GET call to get the groups of the TermStore it…
0
votes
1 answer

Get the preview URL in SharePoint Document library via REST API

I am making a custom web part that connects to the Documents list on SharePoint via Fetch. This is the call that I use for retrieving…
martirodm
  • 33
  • 7
0
votes
0 answers

Microsoft Graph API: LongRunningOperation takes forever

The Graph API has some endpoints that can have two kinds of results: 200 OK: This means the operation was a success 202 Accepted: This means the operation might take longer and has been queued. An operation id is also returned This would be fine…
0
votes
1 answer

Set a Managed Metadata Column Default Value in SharePoint with REST

Has anyone ever successfully set the default value of a managed metadata (single select) column in a SharePoint library/list via Power Automate/REST API? I tried the following in Power…
Sylvie
  • 57
  • 3
  • 12
0
votes
1 answer

Get-SPOTenant and Get-SPOTenantSyncClientRestriction using Connect-PnPOnline

I was trying to connect to SharePoint online via Connect-SPOService where I do not have a username/password and have only clientId and clientSecret. While surfing online I get…
Divyesh Jesadiya
  • 1,105
  • 4
  • 30
  • 68
0
votes
1 answer

How to validate Azure Credentials Format (ClientID, ClientSecret, TenantID)

I've been trying to find in Microsoft documentation (learn.microsoft.com) format specifications for the ClientID, the ClientSecret and the TenantID in order to connect to SharePoint REST API v1. I am simply trying to validate format with regex in C#…
0
votes
0 answers

Using SharePoint REST API can we create Anyone share link with a password

Inside the SharePoint Online UI >> we can create a sharing link using "Anyone" + define View permission + define a password, as follow:- where we define the user/s and the UI will send an immediate invitation email. Now i am developing a REST API…
0
votes
0 answers

Using SharePoint REST API can we create a share link for specific users without sending invitation

Inside the SharePoint Online UI >> we can create a sharing link using "People you choose" + define View permission, as follow:- where we define the user/s and the UI will send an immediate invitation email. Now i am developing a REST API call using…
0
votes
1 answer

official documentation about the SharePoint REST API end point for creating sharing links

Inside any SharePoint Online sites, we have the following four sharing options: - Now I am building a custom REST API (one using Power Automate, the other using .NET Core)>> which should generate the above four sharing options using SharePoint REST…
0
votes
0 answers

Update SP.FieldLink through SharePoint REST API

I want to set a Contenttype's field to be hidden. When I try to do this I get the error: The type SP.FieldLink does not support HTTP PATCH method I'm able to retrieve the field's information with a GET request…
RoelVB
  • 1,586
  • 11
  • 12