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.

131 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
11 votes
2 answers
6k views

The remote server returned an error: (403) Forbidden when accessing office365 site through external APIs

We have built a desktop app that import/exports SharePoint lists into/from Office 365 sites. The app works perfectly, and we were able to do the import/export of Office 365 site pages for many clients ...
Anas Nakawa's user avatar
3 votes
1 answer
1k views

Handling The SharePoint REST API Search Threshold Limit In powershell

We are using SharePoint Online. I would like to search in all sitecollections for the word "passport". I make it working with the REST api in powershell. But I have now only the problem that it ...
Ola's user avatar
  • 4,395
3 votes
0 answers
52 views

Reaching subsites of SharePoint domain

I am writing an application that scrapes all the files from a given SharePoint site and all of its sub-sites. This worked perfectly when I ran it locally however, now that it's running on a server ...
Bram Vandenbogaerde's user avatar
3 votes
0 answers
346 views

Update metadata w/2013 REST API in a Workflow

I am looking for an example of a REST PUT/MERGE method done from a workflow (no code) in SharePoint Designer to update a metadata field in a library. Specifically what the Build Dictionary and Call ...
Steve Montague's user avatar
2 votes
0 answers
90 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?
Thomas Leclaire's user avatar
2 votes
2 answers
2k views

MS Graph presence - forbidden 403 error

I'm getting 403 forbidden error in my SPFx web part when trying to access Teams presence (mine and other users as well). I have set permissions in package-solution: Permissions: { "resource": "...
Vochomurka's user avatar
2 votes
1 answer
261 views

SharePoint 2013 REST API filters

As part of our requirement, i created one BCS connection which retrieves data from a SQL stored procedure which acceppts two input paramaters. I was able to create a external list out of it. But when ...
Swathi Priya's user avatar
2 votes
0 answers
219 views

How do I monitor SharePoint Online API usage?

Our company stores projects in Office 365 SharePoint Online, creating one site per project utilizing site templates. We then use SharePoint Workflows, PowerBI, Microsoft Flow, PowerApps, and custom C#...
Henry's user avatar
  • 21
2 votes
0 answers
898 views

Access-Control-Allow-Origin' not allowed access SharePoint Ajax call cross domain

I am trying to access cross domain service using ajax call in sharepoint. getting below error Failed to "Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-...
Sachin Pandey's user avatar
2 votes
0 answers
948 views

is on-premise Sharepoint 2016 REST API possible with oauth?

I have a Sharepoint 2016 server and a python web server. I would like to read data from Sharepoint with my python server. I was able to do this on Office 365 on the cloud but did not find much ...
kimchirichie's user avatar
2 votes
0 answers
46 views

Unable to get all worksheets ranges with REST API

Maybe I am doing something wrong or I didn't get the way to get my data. I tried to call: curl -k --ntlm --user user:pwd https://sharepoint.server/dept/_vti_bin/ExcelRest.aspx/Department/mydoc/...
user2360915's user avatar
2 votes
1 answer
701 views

How to get SharePoint survey graphical view results using API call?

I have create the survey list in SharePoint 2013.i have added some questions in it.i need to get the graphical response view using API call or programmatically. I need to display my own view in ...
PGP's user avatar
  • 1,115
2 votes
0 answers
213 views

Add .aspx file via REST

I'm able to add a .txt file to my Sharepoint library by posting to this URL: https://my_subdomain.sharepoint.com/sites/my_path/_api/web/GetFolderByServerRelativeUrl('/sites/my_path/Pages')/Files/add(...
Gregor's user avatar
  • 121
2 votes
0 answers
599 views

SharePoint Online : Using REST API for getting list items return null

I am trying to create a Sharepoint hosted add-ins to get data list items. My code are below var hostweburl; var appweburl; //The SharePoint site where the App is installed hostweburl = ...
Intan's user avatar
  • 371
2 votes
2 answers
1k views

Upload files with REST or alternatives

I need some help with Server to Server upload. (not from the browser) Has anyone uploaded files to sharepoint 2013, using REST, or other methods from a server (java/coldfusion/other). I am getting a ...
user3005033's user avatar
2 votes
0 answers
187 views

Access Denied when trying to create an item with SharePoint API

I am using OAuth to authenticate a client to access SharePoint and create some files. I have the access token and can access endpoints with no issues. However, when it comes to creating items, I am ...
prog_24's user avatar
  • 211
2 votes
1 answer
1k views

Using html2Canvas API to generate images of custom aspx pages

So I have an html table I'd like to convert to an image and I found a pretty neat API to do exactly this. It's called html2canvas. I have been able to use it pretty easily using HTML pages in my ...
Riggy's user avatar
  • 195
2 votes
2 answers
4k views

Create an item with REST API from workflow - SharePoint 2013

The main idea of this is to create an item from workflow in another list which is located on different site collection. So I thought is it possible to create an item in list with REST API through the ...
Jovs's user avatar
  • 41
1 vote
0 answers
26 views

Calling HTTP endpoints via On-premises data gateway

I have a requirement to get information from an old legacy system thats on premise. If they have an API that is exposed can I use data gateway and a custom connector? I need to use Power Automate to ...
naijacoder's user avatar
  • 4,232
1 vote
0 answers
48 views

How to mark a page as a language copy?

I have a SharePoint Online site, where I need to translate some pages into different target languages. My site's default language is English, thus the source language of a page is always English. The ...
privm's user avatar
  • 23
1 vote
0 answers
165 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 ...
ddewaele's user avatar
  • 111
1 vote
1 answer
193 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 ...
Ushka's user avatar
  • 277
1 vote
1 answer
1k 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 ...
MindingData's user avatar
1 vote
0 answers
131 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 ...
user94330's user avatar
1 vote
0 answers
55 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?
spDevAdmin's user avatar
1 vote
2 answers
1k 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 '...
Ravi's user avatar
  • 828
1 vote
0 answers
232 views

SP.Utilities.Utility.SendEmail Anonymous User

I have a public website made with on premise sharepoint. Can I use rest api (SP.Utilities.Utility.SendEmail) to send email with anonymous user? I am trying but didn't work.
Pedro Henrique Silva's user avatar
1 vote
0 answers
295 views

How to use RowsPerPage in the REST API

Whenever I send a request with RowsPerPage set, either via GET or POST, more rows than the RowsPerPage value are returned. RowLimit works though. /_api/search/query?querytext='sharepoint'&...
Frank's user avatar
  • 131
1 vote
0 answers
682 views

How to use external API in sharepoint online or in SPFX?

I am trying to integrate the Microsoft Translator Text API to a SharePoint online site, and the method that I am using is with sharepoint framework webpart. but when I press the button to do the API ...
Joshua Dominic Sibug's user avatar
1 vote
1 answer
3k views

Rest queries on ProjectOnline should use _API/ProjectData or _API/ProjectServer?

I've been trying to identify what is the correct way to get data from Project Online for some time now (I just want to get data, not update it). I can find documentation on ProjectData and a lot of ...
Guilherme Soster's user avatar
1 vote
2 answers
3k views

Sharepoint REST API: Get filtered results of files in a document library subfolder and sub-subfolders

Let’s say I have a Document Library “Documents” with structured folders like this: - Folder1(ID1) - SubfolderA(ID3) file-1-in-SubFolderA(ID4).txt file-2-in-SubFolderA(ID5)...
Ruba's user avatar
  • 11
1 vote
3 answers
3k views

Rest Api Filter on Number Field Starts with

On SharePoint 2013 On Premise, I need rest api filter where I can search some numbers in list starts with. Since records are around 100,000 I can not display all. Hence need a kind of search function.
Vikas Sharma's user avatar
1 vote
0 answers
157 views

REST API - Filter Available Fields Choice Results?

We have a very large choice (nearly 20,000 options!!!) field that we want to be able to retrieve the choices, and preferably filter them on the server side. This is the call to get the options _api/...
bla9x's user avatar
  • 171
1 vote
0 answers
96 views

SharePoint change author

Is it possible to change the Author of a discussion list using the API in SharePoint 2016? I am trying to update a discussion list author with the user ID19. This is what the curl request would look ...
jakefullbright's user avatar
1 vote
0 answers
278 views

Uploading PDFs via the SharePoint Graph API without using Binary?

I am able to upload to the SharePoint Graph API via client-side JavaScript when I send the data in binary. However, I need to send PDF files via a server-side connection and when I do this the data ...
KN Smith's user avatar
1 vote
1 answer
230 views

Get all list's values using REST API - ERROR

I'm trying to get all values from a list and print it to screen. I have a column named 'tz' and I want to print it only. I use this code, but I am getting an error: Unable to get property '0' of ...
uRIELk's user avatar
  • 61
1 vote
0 answers
43 views

Which API to use for my application to SharePoint online?

I am new to SharePoint, need some guide on the choosing the API. I being read a lot of info last few days by its still very confusion to me. https://dev.office.com/sharepoint/docs/general-development/...
YHTAN's user avatar
  • 223
1 vote
0 answers
100 views

SP Hosted-AddIn - Pass body parameter to SP.WebRequestInfo() object

I want to pass body parameters to my post request, how to do this? In msdn article haves only example with GET request.. This is my code for get request(Its working): function webProxy() { ...
Goshky's user avatar
  • 2,058
1 vote
1 answer
343 views

SP2010 API: How to insert data into list with folders

I have used SPServices for a long time, both creating, deleting and getting list items from my sharepoint sites. Now I got a new site, and in this site the previous developer has created lists with ...
Anders Gerner's user avatar
1 vote
1 answer
50 views

How to access a Sharepoint's API on LogicApps?

I'm trying to connect to Sharepoint's API. So when I create an account on CRM I need , with LogicApps, access a sharepoint site and create a Group. When i am testing the api access on Postman I have ...
Sara Freitas's user avatar
1 vote
0 answers
167 views

SharePoint 2016 compatibility

Does anyone know the link to API or document for API in SharePoint 2016? We are currently using '.Net client API' for SharePoint 2013 and want to check if the methods used from it will still be ...
user60704's user avatar
1 vote
3 answers
865 views

How to create a Request Http "GET" to url

I want to make a request http Webservice API to https://sms.vietguys.biz/api/u=[user]&pwd=[password]&from=[Title]&phone=[phonenumber]&sms=[ContentSMS] using javascript. Can I do ...
Văn Trịnh's user avatar
1 vote
1 answer
627 views

REST - Get expanded property data for use in angular

I am trying to figure out how to get the expanded property data and be able to use that data in my angular code. REST call to get expanded property Data: /_api/Web/GetFolderByServerRelativeUrl('...
dbrown's user avatar
  • 35
1 vote
1 answer
304 views

Create File using SharePoint REST API call But It couldn't edit or view

url: http://site url/_api/web/GetFolderByServerRelativeUrl('/Document')/Files/add(url='abc.docx',overwrite=true), method: POST, body: "This is my doc", Headers: Authorization: "Bearer " + ...
thulasika Vijayanathan's user avatar
1 vote
1 answer
144 views

what is different between office 365 SharePoint and SharePoint on-premise? (using API)

I want to develop application that can access SharePoint on-premise server and download files from that server. I already developed JAVA application using REST API of Office 365 SharePoint. so what ...
Jehyun Shim's user avatar
1 vote
2 answers
8k views

Is there any way to overcome URL length limitation in REST API "GET" Requests?

Is there any way to overcome the 2083 characters limit using REST API GET request itself.
Vishnu PS's user avatar
  • 467
1 vote
1 answer
1k views

REST API return encoded Multiline Textfield but show it correctly

I save a JSON string in my SharePoint list. This looks like: {"columns":[{"name":"A","visible":true,"width":200,"sort":{},"filters":[{}],"pinned":"left"},{"name":"B","visible":false,"width":150,"sort"...
Patrick's user avatar
  • 111
1 vote
0 answers
441 views

Adding documents into a Document Set folder in SPO by busing Javascript

I am working on a project where I have to build the logic to upload documents into document set folders and I am stuck building the end point. Can we work with document sets in the same way we do it ...
Paul R's user avatar
  • 41
1 vote
0 answers
24 views

Prevent SharePoint from sending emails when changing elements via API

I'm about to remove attachments in around 10k list items via SOAP API, how do I prevent email notifications about this?
sotona's user avatar
  • 195
1 vote
0 answers
95 views

Connecting outside database via WEB API's to SPO

Has anyone been able to automate a connection to an outside source that uses WEB API's? We use Deltek Vision in the cloud, and would like to be able to automate some information to carry over from ...
Travis Easton's user avatar