Questions tagged [api]

Application Programming Interface (API) is a set of functions and procedures allowing the creation of applications that access the features or data of an operating system, application, or other service. When used as a question tag, please be sure to describe in your question which APIs are being used.

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

listdata.svc not working in SharePoint online Site collection

I am using Power Automate to make a http call to SharePoint site but it is giving 409 error with no additional details. When I tried to manually visit the listdata.svc URL, it only gives an error as ...
user avatar
1 vote
1 answer
29 views

Ajax call to SharePoint API returns '403 - Forbidden'

I need to access data on a SharePoint Online site from a php application. I'm using SharePoint API with JavaScript trying to achieve this. I already succeeded in accessing the SharePoint site with ...
user avatar
0 votes
1 answer
23 views

Listing all sub-sites that you have access to in a site collection

In my situation, I have a site collection `/sites/mysitecol` - site collection - `/sites/mysitecol/test1` - sub-site - my user has access to this site. - `/sites/mysitecol/test2` - sub-site - my ...
user avatar
1 vote
2 answers
89 views

Incorrect API Endpoint URL

I'm very VERY new to SharePoint and am currently working on a project with needs a react SPFx Web Part to be developed which can be put on any site/page to read data from Document Libraries. However, ...
user avatar
  • 23
0 votes
2 answers
15 views

Which columns are being returned from an AJAX call?

I know the names of some columns - FirstName, LastName, JobTitle, SAMAccountName, Department that an API serves out but I would like to know all the columns that are returned. How do I find out the ...
user avatar
1 vote
1 answer
13 views

Access files via autogenerated ID through REST API

what I'm currently doing is accessing the files in my Document Library through the REST API like this: [baseURL]/_api/Web/GetFileByServerRelativeUrl('[relativeURL]'). To collect these relativeURLs, I ...
user avatar
  • 13
0 votes
1 answer
36 views

Grant permission to a sharpoint-online subsite

I'd like to grant permission to a subsite of sharepoint-online using the Sharepoint API. The subsite is created using the following parameters (I was using Power Automate - but in the end it is a API ...
user avatar
  • 101
0 votes
0 answers
14 views

SharePoint Online - Enable Scheduling via CSOM on Modern Pages (Site Pages)

Now, we can enable Scheduling on Modern Site Pages: https://support.microsoft.com/en-us/office/schedule-a-sharepoint-page-or-news-post-to-go-live-at-a-specific-time-4b81873c-9bbc-4307-b7ea-...
user avatar
0 votes
1 answer
16 views

How to get the page count of a PDF document stored in sharepoint through REST API?

From a salesforce site, we want to retrieve the page count of pdf documents stored in a SharePoint site, How to get this through REST or some alternative way?
user avatar
0 votes
0 answers
23 views

Supporting % and # in files and folders in SharePoint 2019

My SharePoint code is on SSOM model. I want to give support for Complex character i.e. # and % for file & folder in SharePoint 2019. Can anyone suggest API which can handle Server URL containing ...
user avatar
0 votes
0 answers
18 views

List view treshold exceeded

I have a problem when getting list items. When I want to filter them, I always get the error The attempted operation is prohibited because it exceeds the list view threshold. Event if I should not ...
user avatar
0 votes
1 answer
393 views

List all the members of SharePoint groups with Graph API

Is there any endpoint in the Microsoft Graph API fore SharePoint Online to list all the groups and members of SharePoint groups? It must also be possible to manage the users from those groups. As ...
user avatar
0 votes
1 answer
34 views

Help with post request from SPFx secured by AD

https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-aadhttpclient-enterpriseapi < I have a few GET requests working in my SPFx app, but the guide here doesen't show you how to do a POST ...
user avatar
  • 396
0 votes
1 answer
58 views

REST API: upload a file to a Docset

Similar to this (Upload multiple files using rest api) I want to upload files to an existing Docset. I am using the pure REST API as I am on Java. I asked myself, how to control where the uploaded ...
user avatar
0 votes
1 answer
132 views

Using Send an HTTP request to SharePoint to send requests to Non-SharePoint sits

I was really surprised that the Send an HTTP request to SharePoint action in Power Automate can be used to send requests to https://presence.teams.microsoft.com: I was really intregued to try it ...
user avatar
0 votes
1 answer
15 views

How do I create a page in SharePoint and manage its content?

I would like to set up a system for deploying content into a SharePoint (O365) site using C# code. I would be reading text files in Markdown format and either converting them into HTML for publishing, ...
user avatar
  • 101
1 vote
0 answers
51 views

Manipulate sharepoint group membership using REST API from external app

I have an application that is secured via OpenID Connect / Azure AD. It is a webapp that is not running as part of the Sharepoint Framework. However, the app does need to interact with SharePoint in ...
user avatar
  • 111
0 votes
1 answer
35 views

Send email to users with expired documents

I want to be able to send email to each user which has expired documents and be able to know when the expiry date email was sent. The item contains worker name, their expiry date, and the heading of '...
user avatar
0 votes
0 answers
93 views

Why SharePoint ListItemAllFields not returning all fields?

Using the following I can see all properties and column values for documents in my library/folder except for one. _api/web/GetFolderByServerRelativeUrl('/mylibrary/myfolder')/Files?$expand=...
user avatar
  • 373
0 votes
0 answers
42 views

Create/Update List Item using XML

In this link following example requests are given for create and update - Create Authorization: "Bearer " + accessToken Accept: "application/json;odata=verbose" Content-Type: "...
user avatar
0 votes
0 answers
13 views

Sharepoint API - 401 while authenticating ANT account with full control

We are trying to achieve programmatic access from a Python3 script, to a Sharepoint site that we own. On our SP site, we have given full control to a ANT\robot-system-account system account. The ...
user avatar
  • 101
1 vote
1 answer
89 views

Static IP address for custom SPFx App and SharePoint Online

I have a custom web part that I'm building using SharePoint Framework to go on my SharePoint Online tenant. The application will be hitting a third-party API to fetch data. The complication is that ...
user avatar
  • 267
0 votes
1 answer
254 views

Full Text Search Across Document Library

I am attempting to build a powerapp on top of a sharepoint list that can do both full text searching of documents and filter by metadata in the document library. I am currently stuck on being able to ...
user avatar
0 votes
0 answers
16 views

I am trying to download file from SharePoint through c# code but i am getting this error. ({StatusCode: 400, ReasonPhrase: 'Bad Request', )

public async Task<ActionResult> DownloadFile(string serverFileUrl) { //var webUrl = "https://sharepoint.com/sites/509847/"; Uri webUrl = new Uri("https://...
user avatar
  • 1
0 votes
1 answer
291 views

Sharepoint API creating folder 403

I am new to the SharePoint API. I am trying to create folders in a customer SharePoint solution. Problem is i'm getting a 403 return. My request.: POST https://companyname.sharepoint.com/sites/Test/...
user avatar
  • 23
0 votes
1 answer
46 views

May I add a custom attribute in SPField SchemaXML to create

Could I add a custom attribute (MyCustomAttribute="true") in SchemaXML of SP.Field and create it by REST API? <Field Type="Text" DisplayName="AwesomeField" MaxLength=&...
user avatar
0 votes
2 answers
267 views

How can I get parent guid of an item?

I have a list with items in SharePoint Online. There many items and their structure look like a tree. list/ itemA/ itemB/ itemBa/ itemX itemBb/ ...
user avatar
0 votes
1 answer
40 views

SharePoint High Trust 401 after a day

we are experiencing a really difficult problem and TBH could do with a few ideas of things to check over. So we have a high trust SharePoint application that works well however it just seems, most ...
user avatar
0 votes
1 answer
327 views

AJAX Request to sharepoint REST API But receiving CORS error

I want to request a sharepoint server with ajax but I get an CORS error : How can I solve this issue please $.ajax({ url: "http://myserver.com" + "/_api/web/Lists/GetByTitle('...
user avatar
1 vote
2 answers
856 views

Retrieve SharePoint file with API using document ID from any document library

In site collection features there is an option to enable Document ID Service. After doing this, whenever a document is uploaded to a document library, a unique document id that is a link to the doc is ...
user avatar
0 votes
1 answer
35 views

Block SharePoint Online APIs

Is it possible to block people from using SharePoint Online APIs like REST, etc even if they have permissions to access a site?
user avatar
  • 174
1 vote
0 answers
82 views

Removing the "Getting Started" webpart with REST API

Is there any way to delete the 'Getting started..' webpart from a workspace (actually the home.aspx) via REST API (or POST request)? Unfortunaly it is not possible to disable the module on the parent ...
user avatar
0 votes
1 answer
196 views

Upload Files >250MB via Sharepoint REST API

So I am trying to upload Files to a Sharepoint Site via the REST API. I am already using the /Files/Add() Path-Function, but that one is (from what I've found) per design locked to 250MB max and ...
user avatar
0 votes
1 answer
58 views

SharePoint Online Active Authentication with Two Factor Authentication

Is there a way to make the implementation suggested by Vitaly Lyamin, working with Two Factor Authentication? https://docs.microsoft.com/it-it/archive/blogs/sharepointdevelopersupport/sharepoint-...
user avatar
0 votes
1 answer
432 views

Property 'getFolderByServerRelativeUrl' does not exist on type 'IWeb'

I can not access getFolderByServerRelativeUrl() in pnp API. await sp.web.getFolderByServerRelativeUrl() Error: Property 'getFolderByServerRelativeUrl' does not exist on type 'IWeb'.
user avatar
0 votes
1 answer
479 views

Failed to Fetch Error while calling Azure Function

I am calling an Azure Function which is publicly accessible from my SPFx web part. It is a POST Request and I am getting a Failed to Fetch error. The same API call is working fine if I execute it from ...
user avatar
2 votes
1 answer
55 views

why returned date from version history is different from actual date (triggerbody)

It seems the SP data repository and front-end SP list use two different timezones. when I get a date from version history it is different from what is actually shown in the SP list, how can I fix this?...
user avatar
0 votes
1 answer
46 views

Does SharePoint Online have plugin tools for SSRS (SQL Server Reporting Services) or is there an API for accessing and writing reports?

I've been looking around for a while and haven't found anything yet. Any help is much appreciated. Thanks.
user avatar
0 votes
1 answer
1k views

Problem with CORS Policy when call to API with SPFx

have problem with CORS Policy. Get an error: Access to fetch at 'https://XXX.azurewebsites.net/api/protocols' from origin 'https://localhost:4321' has been blocked by CORS policy: No 'Access-Control-...
user avatar
  • 15
0 votes
0 answers
23 views

Microsoft Teams API

I have requirements where using Team API I have to perform following tasks Identify if teams have any files or folders inside it Get the Teams permission Conversation, Teams have any private or ...
user avatar
0 votes
0 answers
22 views

How can i retrieve the datas in one column from a list?

I have a big document library. And i am using C sharp. When the user selects one document from the frontend website(like click method), I want to be able to get the value in Column A of the selected ...
user avatar
  • 641
0 votes
1 answer
29 views

REST API to add replies to a share point discussion

I am able to post a reply to share point discussion with help of below link. REST Call to Post a Reply to a Discussion Board Topic w/o JSOM but here for posting a message ContentTypeId is required.As ...
user avatar
  • 1
1 vote
0 answers
41 views

Is there an API or web service for Copy-SPSite?

What API endpoint is called for the command Copy-SPSite? Also, is there a WSDL web service for this command, like there is the ExportWeb service in Sites.asmx relating to the command Export-SPWeb?
user avatar
1 vote
2 answers
571 views

Problem making 3rd party API POST calls using SPFx

I need to fetch few details from the 3rd party API so I am making a POST request (required by the API) to that API using HttpClient But every time I am getting the below error. Access to fetch at '...
user avatar
  • 808
0 votes
1 answer
61 views

REST or any other API for client side dev to get current users running workflows(Designer or OOTB or MS Flow)?

As part of a requirement the clients would want us to create an SPFX webpart which displays all the document names and the tasks or workflows running on it for that user/current User. Is there a way ...
user avatar
2 votes
0 answers
34 views

Programmatically grant app permissions to site collection?

Is there an API that let's me register an application (App ID) to a site collection like I would do in the below dialog?
user avatar
0 votes
1 answer
93 views

Getting 403 error when calling REST API from HTML/JS in sharepoint online

As from now you cannot create custom aspx files in SharePoint Online nor edit them with SharePoint designer. I'm trying to launch an html with some js (angularJs and jquery) from the same site in ...
user avatar
0 votes
1 answer
1k views

SharePoint Online api, no access

We are making an interface with SharePoint. I did the app registration in AAD, gave SPO degelated permissions via Graph API API call for access token works fine API call to get a file keeps erroring ...
user avatar
  • 87
0 votes
1 answer
200 views

How to get list of all deleted sites using Microsoft API?

Is there a way to get a list of all deleted sites in sharePoint using Microsoft Graph or SharePoint API? I don’t want to use powershell. I want a api. Thanks in advance
user avatar
0 votes
1 answer
306 views

How to list all personal sharepoint sites using microsoft graph?

I want to fetch following data using Microsoft graph API All the root sites(group + personal) All group root sites All personal root sites For the first case currently I am using https://graph....
user avatar

1
2 3 4 5