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
1answer
11 views

API issues downloading image, empty file or corrupted image

What I'm trying to accomplish is this. I'm working on an integration web app that lets our techs pull data from our crm and sharepoint. What I'd like to be able to do is display images held in ...
0
votes
1answer
16 views

API to get all users with specific text in profile

How can I use an api to get all users with a specific text (hashtag) in their user profile field "about me"? Is this the correct way? https://mysite/_api/search/query?querytext=%27aboutme:%22*...
0
votes
0answers
9 views

User permissions API in Sharepoint 2013 Workflow

For few API's like adding user to group and assigning role to user keeps returning Unauthorized. Have already tried the below steps: 1.Full control to Workflow in appinv.aspx(both with and without /...
0
votes
1answer
8 views

SharePoint List LookUp field to use API to populate choices

When creating a list in SharePoint, you can choose the "LookUp" field. I would like to have that "LookUp" be able grab information from an API from a different site. Any way to get this process ...
0
votes
1answer
32 views

REST api call using method getbyemail for user in a group returns error “Cannot find resource for the request getbytitle”

Users exist in sharepoint group: If I do simple GET request in browser: https://mycompany.sharepoint.com/sites/testsite2/_api/web/sitegroups/getbytitle('TestGroup')/users/getbyemail('john.theuser@...
0
votes
0answers
12 views

Create folder in attachments on costum list

I despair slowly. I want to create a folder via JavaScript and rest api in the attachments of a custom list. but I can't find an example on the internet. Who can help me? My List Name ist "Reviews" ...
0
votes
0answers
10 views

Bulk Restore Version history to specific version

Can someone perhaps help me out with the best way of restoring the a specific version for all list items. So using this method above I can retrieve the entire version history for list items using the ...
0
votes
1answer
15 views

How to skip a failed api lookup and pass null parameters instead?

If the "Title" parameter isn't passed via the url, then my initial api call fails, but even failure, I need it continue to the my item save routine. Unfortunately, an error is thrown on ...
1
vote
1answer
73 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": "...
0
votes
1answer
22 views

How can i find the Excel services URL for my file?

I'm trying to access through the Excel Rest API an excel file "My Excel File.xlsx", but regardless how I what excel services URL I use, I either get 404 or file does not exist or is deleted. This is ...
0
votes
0answers
15 views

How to authenticate with the newest SharePoint using SOAP?

I would like to authenticate using SOAP XML. I found this resource which appears to be the preset for authenticating with SharePoint, which is apparently 7 years old and the http://schemas.microsoft....
0
votes
2answers
30 views

Access Graph API from localhost (SharePoint extension)

I'm developing a SharePoint extension (ListViewCommandSet extension). I have no clue (can't find any docs about this) how to give permissions to access Graph API (even the /me call gives a 403 ...
0
votes
0answers
34 views

How to get rid of exception on ChangeManager SharePoint?

I am working on SharePoint site notifications using webhook. I have added webhook subscription using the following reference Get started with SharePoint webhooks. I have got Notification from the ...
0
votes
1answer
23 views

Get all managers for a user - company hierarchy structure

How to get a list of all managers for a users? Example: User A reports to user B User B reports to user C User C reports to user D (CEO) and top of the hierarchy. By giving user A I should get: [B,...
0
votes
1answer
47 views

SharePoint Online - CSOM API requests for getting site metadata fails when permissions are properly set

I've got an interesting permissions problem with the CSOM API. We have about 200 site collections. I have created a Permission Level on each site collection, and have assigned a Service Account AD ...
0
votes
1answer
92 views

Authentication methods for SharePoint REST API

Let's say I work in company AAA and want to automatically upload documents to BBB's company SharePoint Online application https://BBB.sharepoint.com using REST API. My email username@AAA.com is ...
0
votes
1answer
46 views

Managing Content Type using REST API

How can i manage Content Type in SharePoint List using REST API, it's look like a very wide question, isn't it ? well what i'm looking for exactly is: How to change content type visibility option to ...
1
vote
1answer
144 views

Download multiple files at a time from using HTTP Rest API Calls

I am able to download a file from SharePoint using the API GetFolderByServerRelativeUrl. However I'm looking to download selected files at once from SharePoint. Is there any possibility to do this?
0
votes
1answer
66 views

How to update “Person or Group” column in SharePoint List using REST API

I am looking for a way to update a column of type "Person or Group" using HTTP Request of type REST. Thank you.
0
votes
0answers
15 views

Sharepoint call external web service real time

i am using sharepoint workflow 2013 to call external web service from external web site. How to i set real time connection between external web service and sharepoint? In the other words , i want to ...
0
votes
2answers
258 views

How to update SP List Default view using REST API

I am looking to update my list default view (All Items) using REST API, what i am looking exactly is to show/hide columns. When i checked the result of this request: https://m365x873105.sharepoint....
0
votes
1answer
38 views

I want to get a user property using API REST

I am planning to get a user property (any information like email, id, title ... etc) using API REST, https://m365x873105.sharepoint.com/sites/BBS-support/_api/web/siteusers(@v)?@v='c:0t.c|tenant|...
0
votes
2answers
19 views

What is the API, given a user ID, to tell me permissions for a user of a list item ID?

I have an application that needs to be able to use my SharePoint API to check if a user AD\USERNAME has access to see a list item. I have the server relative URL of the list item, and the object ...
1
vote
1answer
25 views

Unable to approve API permissions from API Management page

I created a custom web part that calls a web API I created. When I deployed the web part, I went to approve the required permissions and received the following errors: [HTTP]:500 - [CorrelationId]:...
0
votes
1answer
17 views

People / Group column looping through nested data

I am using Javascript / Jquery to pull list data. One of the fields is Author, which is a group / people field that allows for multiple users. I get the data, and I test if there is data in the ...
0
votes
3answers
58 views

How to insert selected Checkboxes via Sharepoint 2016 API

I've been able to piece together the following code that "builds" a checkbox list in Sharepoint 2016. That was step one. Now, I'm trying to figure out how to loop thru the whole list of Departments ...
0
votes
2answers
106 views

How to save the value of a Yes/No Checkbox via Sharepoint 2016 REST API onPrem?

How do you save checked/unchecked for sharepoint 2016 on-prem via the REST api? I have a couple input text boxes saving text, but I'm can't save yes/no for cbAttending, I can't seem to get the value ...
0
votes
0answers
14 views

consume sharepoint REST web services from html

I want to access list items and files in document library in a sharepoint OnPremise site from my HTML application hosting in another server without any server side coding. I mean i want to ...
0
votes
0answers
10 views

Sharepoint api - Post paragraph of comments in postData causes problems with special characters

SP OnPrem 2016: I'm working with Sharepoint API's in VB.net and I can do GETS, POSTS and MERGES fine. But now I need to post a small paragraph of comments into a sharepoint custom list item. (...
3
votes
1answer
249 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 ...
0
votes
1answer
28 views

Difference of two files using SharePoint

How do I get the diff of file1.csv and file2.csv from SharePoint (maybe using API calls, if possible)? diff : Compare the contents of file1 and file2 and produce the list of changes necessary to ...
0
votes
1answer
22 views

Adding request limit to Sharepoint/Office 365 API List search

I have a url I am using to query a list in Sharepoint formatted as below. http://sites/sites/site/_api/web/lists/getbytitle%example%/items?$select=Email/EMail&$expand=Email Because my list has ...
2
votes
2answers
177 views

Allow Sharepoint REST API app access to a singular list and nothing else

By default the permissions of a sharepoint app seem limited to read/write/full control over the entire site. I'm looking for a way to grant a supplier access to a list but do not want them to be able ...
1
vote
1answer
417 views

Sharepoint Online Rest API - VBA - 401 unauthorized - SPOIDCRL token

I'm trying to use the rest api to get info about a doc library but keep getting 401 unauthorized - the code below worked for a bit for me but not other users now it doesn't work for me either... I ...
1
vote
0answers
15 views

C# api upload to SharePoint [closed]

I want to read and upload on SharePoint, anyone can help me ? I use C# api. I try by Cloudinay and Api works.
1
vote
0answers
55 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.
0
votes
0answers
31 views

How to get the content of a specific document version

I am trying to retrieve the content of a specific version with Sharepoint API. I can get metadata like this : { "d": { "results": [ { "__metadata": { "id": "...
0
votes
1answer
215 views

The query to field 'list/ChoiceField' is not valid."

I have a lookup list that contains a choice field. I'm trying to retrieve it's values using rest Expand= "list" Select= "list/ChoiceField" I get The query to field 'list/ChoiceField' is not ...
0
votes
1answer
133 views

PWA Workflow gets Access Denied for API Call to get Assignments

I have a SPD 2013 Workflow on our PWA site that has been working fine for 6 months. My colleague has left the business and Admin have disabled his 365 account. Suddenly, the Workflow is failing and ...
0
votes
1answer
30 views

how to know in which folder my file is

How can i Know, using my item metadatas, the folder it is stored in? For example, I do this Get Request : https://sharepoint.com/sites/SPSample/_api/web/lists/GetByTitle('Documents')/items(2)/...
0
votes
1answer
74 views

Log out SharePoint 2013 API

I am working on SharePoint API, and i have a login method which looks like that : public void login(String configFileName) { CredentialsProvider credsProvider = new BasicCredentialsProvider(...
0
votes
0answers
29 views

Get a specific version of a file/document SP 2013

I am currently working on a SP project using JAVA and Rest calls, I have to get a specific version of a file. For example, my file is named Document and is 4.2 version. On the site, I can see the ...
0
votes
2answers
300 views

SharePoint 2013 Rest API (targeting specific columns)

Very new to SharePoint Rest API's, I got the rest to work filtering the first Column but now I am running into issues with showing the multiple columns for example. I am trying to filter out the ...
0
votes
0answers
582 views

Microsoft Graph/Sharepoint API search

The Graph API isn't well documented about a few things, and so I was wondering if anyone had some insight, or direct answers to the following problem: Background I am attempting to create a RESTful ...
0
votes
0answers
165 views

Jquery Datatable Grouping 2 levels (Group and SubGroup)

I'm trying to group datatables using SharePoint List RESTAPI and I get to accomplish level grouping and I want to group level two as subgroup. Please let me know if that's possible. The picture below ...
0
votes
1answer
42 views

Azure Sharepoint Application API Key generation

Introduction I'm not a Sharepoint developer. I'm attempting to build an API from a php application to talk to the file storage within a Sharepoint site. From what I can The RESTful API makes the most ...
1
vote
0answers
117 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'&...
0
votes
1answer
105 views

Index all the rights

I have been trying to see the rights on folders within a sharepoint list. I haven't been able to do so with Powershell. Is there a way to do it with Python? I need all the rights on all folders. So ...
0
votes
1answer
59 views

Unable to update InformationRightsManagementSettings using REST

The following request returns Status 204, indicating it was a success but the informationrights settings hasn't become updated when I take a look the IRM-settings in the web gui for the list. The ...
3
votes
2answers
5k views

How to get version history of item using REST

Very new to SharePoint so I am sure this is a newbie question... I did look at the forums. Here is the command I am using: https://Server/Site/_api/lists/getbytitle('Equipment%20and%20Inventory')/...