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
6
votes
2 answers

Find a list of Files using Sharepoint REST API

This seems to be an aloof question that I can't track down anywhere including here, so I am going to try again to see if someone has a solution. I have a SharePoint 2013 instance that I use the REST API for doing content searches and return to my…
john
  • 1,273
  • 3
  • 16
  • 41
3
votes
0 answers

How to discover all sites in Multi-Geo tenants using SharePoint REST API

We have a multi-geo tenant and we want to get all Site Collections across all locations. Currently, we try to use the next SharePoint REST API…
3
votes
2 answers

The security validation for this page is invalid and might be corrupted. Please use your web browser's Back button to try your operation again

I'm trying to create a web hook for a sharepoint list. Unfortunately, the only way to do so is through calling an API. So I called the API to create my own web hook to a custom list in my sharepoint site. I opened dev tools in Chrome while in my…
AskYous
  • 4,332
  • 9
  • 46
  • 82
3
votes
1 answer

Error when setting a value to Multivalue Managed metadata field type using SharePoint REST API

I have two managed metadata fields in my list, they both can have multiple values, the first one is 'mm' and the second one has a danish symbol Ø - 'mm_Ø'. I fetch the fields information using SharePoint REST API endpoint: GET…
3
votes
1 answer

How to perform a resumable Upload to a SharePoint Site (Not Root) Subfolder using MS Graph API

Documentation: https://learn.microsoft.com/en-us/graph/api/driveitem-createuploadsession?view=graph-rest-1.0 I am able to get the Drive ID of the sub site using the sites/domain/drives api. Using this and the driveId/root/children I can confirm…
user9196065
3
votes
2 answers

How to Access Sharepoint Online API with v1 Azure AD Application and Client Credentials

I am unable to make an API call to Sharepoint Online using Postman. I have successfully made API calls to the Graph API so I am familiar with how I think this should work. I have followed these instructions for setup: for creating a certificate and…
3
votes
1 answer

Sharepoint 2013 REST API GetFolderByServerRelativeUrl will not return the Author details

I looked over other answers that was having the same problem, but those answers don't seem to resolve this problem. How can I get the request to include the Author name? Although, this request returns Author in the response, it doesn't have the…
Suthan Bala
  • 3,209
  • 5
  • 34
  • 59
2
votes
0 answers

How to programmatically access Sharepoint sites other than root from Office365-REST-Python-Client?

I need to programmatically access my organization's Office 365 Sharepoint. In particular, at the moment I need to be able to upload and download files from specific lists/paths. I created an Azure AD application using this manual and granted…
2
votes
0 answers

sharepoint api - file content encoding problem

I want to get a pdf file content array from one of my sharepoint libraries and encode it to base 64 now it works with this ajax request: $.ajax({ url: "/sites/pae/_api/web/GetFileByServerRelativeUrl('')/$value?binaryStringResponseBody=true", …
2
votes
1 answer

_api/SPSiteManager/Create site creation failing with sitestatus 3

I am trying to create a new site and receive a site status of 3 but a 200 OK. I read somewhere that a status of 3 means the site is still being created but it has been some hours. In the docs it seems to say the status of 3 is a error but nothing…
Joao Ricardo
  • 311
  • 3
  • 6
2
votes
0 answers

Unable to delete Sharepoint Online term store items programmatically

I'm trying to delete terms or term sets from the default taxonomy store in a C# application which authenticates with an Azure App. I've tried using certificate and app secret authentication as well as a user account context. Using the…
2
votes
1 answer

Is there a Sharepoint API to get nested directory structure for a particular folder at once within a site?

Is there a Sharepoint API to get entire content of files/folders for a particular folder at once ? I don't want to use GetFolderByServerRelativePath recursively.
2
votes
1 answer

Is there a API endpoint to share elements (files, items, sites, ...) with other users in Sharepoint online and on-premise via REST API (in C#)?

I am required to create a share feature (like the one in Sharepoint or OneDrive) for documents, items and folders, for Sharepoint online and on-premise, in a Xamarin app. What I have: Sharepoint REST API. Xamarin app connected to a Sharepoint…
2
votes
2 answers

SharePoint REST API vs. Microsoft Graph API; which is recommended approach?

SharePoint Online can be accessed either using SharePoint's own native REST API, or, using Microsoft Graph API. I have briefly explored both of the APIs and see differences in terms of the capability, for example, SharePoint API has function type…
user527614
  • 465
  • 5
  • 19
2
votes
1 answer

Download all files in a Sharepoint folder using Python?

I have a Sharepoint folder, where every week several files would be dumped. Using python, I would like to download all the files from to a local folder location, do some transformations and upload a single consolidated file back to different…
Rituraj Achuthan
  • 78
  • 1
  • 1
  • 7
1
2 3
13 14