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 retrieve sharepoint items from a specific folder or the entire site that match a specific metadata property

I am working on code(using typescript and the sharepoint REST API) to help people working with me retrieve items from sharepoint. now i want to retrieve the items matching a specific metadata property(like the file's owner or the date it was…
0
votes
1 answer

Using SharePoint Rest API

I am trying to read SharePoint lists using the following endpoint (http://url/_api/web/lists) and I am passing the access token, but the response returns Access Denied. While I use the same access token to call an endpoint from the graph API…
0
votes
1 answer

Need help on refreshing the JWT token on PostMan

I just created an App today and now it got successfully working but all of sudden i am getting a message saying that "Invalid JWT token. The token is expired". What should i do refresh this token. I created an app using Sharepoint Online app…
0
votes
1 answer

Unable to retrieve only folders from sharepoint rest api

I'm unable to restrict the sharepoint search to only retrieve folders. I'm running rest requests to the search api https://(sharepoint url)/ian/_api/search/query?querytext='metatest3' This retrieves only the folder that is on this collection but…
0
votes
1 answer

How do I find the file and folder structure of a sharepoint site using the rest api?

I am trying to find the structure of a folder or the list of all files and folders under a certain sharepoint site using the REST api. Is there a way to get the information in the "export to excel" sheet using the api?
0
votes
1 answer

$batch is not working on sharepoint online 365

Trying to work out the $batch REST api in sharepoint 365 My request payload (simple GET request) --batch_45993c25-30ce-459d-830f-a5aabaf4901f Content-Type: application/http Content-Transfer-Encoding: binary GET…
joyBlanks
  • 6,419
  • 1
  • 22
  • 47
0
votes
0 answers

Reading the contents of a file in a Sharepoint group folder

I'm trying to read the contents of a file in a Sharepoint group folder using the Microsoft Graph Explorer, however the query I'm using doesn't seem to be…
0
votes
1 answer

Need to access sharepoint online addin rest api without azure ad registration

I have a share-point addin need to create the xamarin application. So need access to all the share-point online rest API. As per the Microsoft document we need to register app on Azure AD. I don't want to register the app in Azure AD, I already…
0
votes
1 answer

SharePoint REST API populate radio button on edit form

Custom bootstrap form, using SharePoint REST API, has text fields, checkboxes and radio buttons. Posting values from radio buttons work, value gets posted to a single line text column. However, on my edit form the radio buttons do not appear…
damooji
  • 21
  • 1
  • 4
0
votes
1 answer

Is it possible to use app-only Graph API tokens with SharePoint REST API?

On a project, I'm using app-only tokens and Graph API to perform various operations on data in Office 365 (this is how the app is registered). When it comes to SharePoint, certain operations are not available through the Graph API but are available…
Haris Osmanagić
  • 1,249
  • 12
  • 28
0
votes
0 answers

How to update metadata for share point document via rest api using JAVA Apache httpclient?

I am trying to update metadata for Share Point library document via rest API using JAVA Apache HTTP client. I am able to get Form Digest Value from SharePoint API context. However receiving error 500(Microsoft.SharePoint.SPException) on submitting…
0
votes
0 answers

A huge strange problem with an attempt to get the newly created site id

So the problem is that I do not know if the id of newly created site will be correct and whether I can use it right after the site will be successfully created. How can I distinguish the correct behavior? After creating Communication Site using the…
0
votes
1 answer

Calling SharePoint Online REST API returns ? instead of umlaut

When I call SharePoint Online REST API to lookup a list item any values returns that contain umlauts are substituted for questions marks (?) this is the URL i tried e.g.…
Johnny5a
  • 41
  • 1
  • 6
0
votes
0 answers

Error while making a POST Request to acquire access token

I have been trying to get access token for REST API Calls for Sharepoint, through a post request in Postman. I double checked all the requirements and stil, I'm getting an error while making a POST Request. Here are the following…
0
votes
1 answer

Using the SharePoint REST API to update a list item

I am attempting to update a list item using the SharePoint REST API but am encountering the following error: -1,…
Adam Chubbuck
  • 1,612
  • 10
  • 27
1 2 3
13
14