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

Create list item via REST API on Sharepoint online Team site

I am trying create list item on Sharepoint on line using REST API. When I am creating item on the root site or on the root/subsite - everything is awesome. But if I am trying to create list item on the Team-site with URL like…
0
votes
1 answer

c# script Sharepoint API giving 401 Error on remote server

I'm using the below code for sharepoint authentication. It works perfectly fine on a local machine, but when I deploy this package on server it is giving 401 error. class Program { static void Main(string[] args) { //Delcaring…
Monster
  • 1
  • 1
0
votes
1 answer

SharePoint REST API with CAML Query for more than 5000 items

I need to filter a list which has more than 5000 items using SharePoint REST API One of the columns to filter is a managed metadata column which prevents me from using SharePoint REST API GET Urls I have to use REST API POST requests with CAML Query…
0
votes
1 answer

How to find if current sharepoint web is inheriting the permission from the parent web using Jquery

Is there a way we can test if the current web is inheriting permission from the parent web. list items have HasUniqueRoleAssignments property that tells if the list is inheriting or has unique permission. But web doesn't have something looks like. …
0
votes
1 answer

Microsoft Graph API Javascript SharePoint Access

Is it possible to access Microsoft Graph via REST from SharePoint Online to pull in user properties and send emails after you have been authenticated within the domain? I only have SCA access for our SharePoint Online environment and would like to…
0
votes
0 answers

SharePoint Online - Display Shared with Info of the documents in search results

I want the documents in search results to show the shared with Info besides the title in Sharepoint online. As seen in the image below, I want the part highlighted in Red. Display Shared With Info like this For example, the document is shared with…
-1
votes
1 answer

Programmatically populate a multi-select field in SharePoint Online via the m365 spo tool

I am trying to create a list item with a multiselect field, according to the m365 spo documentation. It feels like I have tried all possible variations, but I cannot get it to work at all. Is there any official guide as to the syntax for a…
-1
votes
1 answer

How to get users current title using sphttp (Not sp.web or pnp) spfx

Can someone give me the code to get the current logged in user for a spfx webpart. I don't want pnp.sp or sp.web please, I want to use spHttpClient etc. I cannot find the basic code ANYWHERE on the internet. A link will do. Regards, T
NightTom
  • 418
  • 15
  • 37
1 2 3
13
14