Questions tagged [rest]

The REST (Representational State Transfer) interface in provides access to lists and libraries as a relational data service. A core concept of any RESTful interface is the resource, and in SharePoint Foundation, lists and items are represented as HTTP resources that can be addressed by remote URLs.

Filter by
Sorted by
Tagged with
0 votes
1 answer
26 views

Help with SPFx and Dataverse

I'm trying to do CRUD functionality on a Dataverse table from an SPFx app. I keep getting the same error: To view the information on this page, ask a Global or SharePoint Administrator in your ...
0 votes
0 answers
4 views

Is it possible to interact with Project Server data from a Project Server server-side event handler?

I have MS Project Server running on a SP 2016 on-prem SharePoint farm. I have set up server side event handlers for the OnPublishing and OnPublished events. Everything is configured correctly for ...
  • 12.3k
1 vote
1 answer
40 views

SPONLINE - How to generate a sharing link via REST?

I have a big need from a customer : An external application needs to create folders and documents in a SharePoint Site. Then, it will need to generate external links to share those documents to a ...
  • 582
0 votes
1 answer
38 views

Office365-REST-Python-Client copy between two sites

I am struggeling to copy a file from one sharepoint site to another. Lets say i want to copy from: https://test.sharepoint.com/Site1/A/ to : https://test.sharepoint.com/Site2/B/ i have not yet found a ...
  • 1
0 votes
1 answer
92 views

Is there a way to export a list as a csv file with the Rest API?

Via the user interface in Sharepoint there is the possibility to export a list as .csv. Unfortunately, you can only load the items from the list via the Rest API, but not download the entire list as a ...
0 votes
0 answers
7 views

Removing unnecessary fields across SharePoint API requests

I'm currently building an app which will use the _API to pull the list into (currently) an XML format, however, there are multiplier fields that I don't really need. I have first created the API link ...
0 votes
1 answer
24 views

How to select/create a custom field in the REST API

We currently use the following format to retrieve a list of data from SharePoint Online and it works fine, but how can I do a similar query that returns a different field "as" the Id field? ...
  • 101
0 votes
0 answers
29 views

SharePoint rest api not bringing items but ItemCount is over 300

http://sitename/_api/web/lists/getbytitle('List Name')?$select=ItemCount gave me a ItemCount of 320 but when I send a Request on http://sitename/_api/web/lists/getbytitle('List Name')/items The JSON ...
0 votes
1 answer
19 views

Is it possible to make batch requests on different sites? And what about the same site but different subsites?

I'm trying to get itens from different subsites but in the same site (it would be nice to know the method to different sites too, if possible) and when I try to do the same way when I do in same site ...
  • 1
0 votes
1 answer
27 views

Issues creating a SharePoint REST api POST request to upload an image and metadata

I am trying to upload an image to a photo document library, currently I seem to get authorization errors when trying to post data but my user account has read and write access to the library, would ...
0 votes
1 answer
32 views

adding approved domains into white list via rest and flow

i have a flow that runs and it adds domains into the white list for a given site. The flow runs fine and the domain is added into the list. Issue is, when the user for a given domain logs in with the ...
  • 17.8k
0 votes
0 answers
16 views

SP on prem - CSOM/REST api to get *only* unique permissions from a list

I am building an ACL tree for my sharepoint collections via the REST/CSOM api. For a given list, I want to get all unique role assignments from that list. But I do NOT want to list each item in the ...
0 votes
1 answer
27 views

Proxy to get data from SharePoint REST APIs

We have a react frontend application. The data source for this app is SharePoint Online list and libraries. We found a solution in node js that serves our purpose, to call REST APIs from react front-...
  • 774
0 votes
0 answers
44 views

Steps to create SPFx web part which consume 2 REST APIs and show their results

We want to create a custom SPFx web part which consume those 2 RESt API: One to get a list of all reviews from Google: https://developers.google.com/my-business/content/review-data#list_all_reviews ...
  • 984
0 votes
1 answer
63 views

getFileByServerRelativeURL fails when the filename contains a pound(#)

I'm using the SharePoint online REST API. Things generally work fine, but I'm failing to figure out how to get information about a file (document) that contains a pound in its name. Here's my REST ...
0 votes
0 answers
136 views

How to retrieve a list of Sharepoint Sites I have access to from Graph API using Sites.Selected

When granting granular access to SharePoint sites using the Sites.Selected permission in the Graph API, I'm not able to retrieve a list of sites, normally using graph.microsoft.com/v1.0/sites. It just ...
0 votes
0 answers
8 views

When uploading a large directory to sharepoint, api CAML queries do not seem to find the data?

I drag-and-dropped a folder into a document library in SharePoint 2019 on prem. The instance is a test instance, but has decent server size. It was pretty big, 30k files, 5k folders. max nesting is ...
1 vote
2 answers
493 views

Getting the Graph ID for a SharePoint document using the CSOM or REST api?

If we are crawling sharepoint online, we can access these data from API using: MS graph API or SharePoint REST API (CSOM, ODATA) All of our code uses the CSOM rest API for SharePoint. But, for each ...
0 votes
1 answer
36 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 ...
0 votes
0 answers
28 views

Set Lookup Field while creating Document Set REST API

I am creating document sets like described here: Is it possible to create a Document Set using REST API (How) can I add metadata values (including lookup column value) to the payload? Or do I have to ...
  • 21
0 votes
0 answers
26 views

Entries doesn't appear in SharePoint after REST Python query. (Ghost entries??)

I'm trying to append multiple entries to a SharePoint List using REST in Python, apparently it works when I get the list from Python but when I look in SharePoint the data doesn't exist in anyplace.
0 votes
0 answers
55 views

How to get default MS Project fields / field names in MS Project Server using client API?

In MS Project Server, if you go into PWA Settings and then "Manage Views", and go into a view as if to edit it, you can see a list of all of the default / built-in Project fields: Is there ...
  • 12.3k
0 votes
0 answers
35 views

Create a Gallery list view via Power Automate

I've been able to successfully use Power Automate to trigger a standard list view creation when a new item is added to a list. The default layout is not what I want though. I'd like to format the ...
0 votes
0 answers
194 views

Can get data from REST API with Postman, but not JavaScript Fetch request (localhost)

So I follow the tutorial in this link. Including the tutorial before it to set up an add-in. So my issue is that I am successful in getting the access token(Bearer Token) using Postman and then using ...
0 votes
1 answer
50 views

Getting a 400 back when posting to SharePoint 365

I'm trying to POST a new item to my SharePoint 365 list via Java 6. (I know this is an old version. This is a technology constraint I have to work with.) First I worked out the url and the body and ...
  • 1
0 votes
1 answer
558 views

Uploading files to sharepoint with RestSharp and their rest API is adding header and trailer lines to every file

I'm uploading to sharepoint using a c# client, and every file I Upload gets extra data included. A one line CSV file gets turned into a 7 line file that isn't usable. This is what my one line file ...
  • 103
1 vote
1 answer
643 views

Uploading files from node/Express.js server to sharepoint

I'm trying to send a file to a SharePoint folder using the sp-request module. I can upload a .txt file and it opens correctly. But when uploading .docx files, the file becomes corrupted. My collection ...
  • 23
1 vote
1 answer
28 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 ...
  • 13
0 votes
0 answers
28 views

Version history from REST API uses double encoded field names

I'm currently trying to retrieve SharePoint list items using PnPjs for a custom UI client. This includes displaying fields that have a version history. I'm trying to build the solution as dynamic as ...
  • 101
0 votes
0 answers
5 views

Obtaining NoIndex property from a site without using SOAP api?

We use the following soap request to get the "NoIndex" value from a sharepoint site: {siteColUrl}/_vti_bin/SiteData.asmx SOAPAction = http://schemas.microsoft.com/sharepoint/soap/GetContent ...
0 votes
0 answers
15 views

Getting form digest without using SOAP [duplicate]

Is there a way to get the Form Digest value without using a SOAP call? Because accessing CSOM SharePoint web services require digest value, and because the form digest request requires SOAP, we are ...
0 votes
0 answers
22 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 ...
0 votes
0 answers
76 views

I am adding a file to the folder using SharePoint API showing content as base64string value

Does anyone have a link or document to make rest sharp SharePoint API to add a file to the folder with byte array payload? Any help is great; thank you in advance. GetFolderByServerRelativeUrl('list')...
0 votes
1 answer
371 views

Sharepoint Rest API, Get files from a list throwing unknown 500 errors only when a file is present

I've been setting up an app to query a Sharepoint Document list for files (amongst other things). Querying {{mainLink}}sites/{{subsite}}/_api/web/lists/Documents/Files on postman with the following ...
  • 103
0 votes
0 answers
23 views

Is there a difference between the /Files endpoint and the /Children endpoint with the Sharepoint Rest API

I'm currently working out how to iterate through files on a sharepoint using rest. Ultimately I'll have to get all files from a folder, do stuff, and then upload to another folder. From what I can ...
  • 103
0 votes
1 answer
242 views

Create navigation item using REST API with non-existing link in SharePoint Online

I've stumbled upon issue where I need to create a link in navigation from root site which points to site collections. POST Request URL: https://contoso.sharepoint.com/_api/web/navigation/...
0 votes
0 answers
19 views

Upload file to SharePoint from another website (With no computer, Cloud only)

I am looking to see if its possible to download a file from a website directly to SharePoint with no local computer or VM involved? I have an app registration for my SharePoint and I have learned how ...
0 votes
1 answer
40 views

Are there any SDKs for SharePoint REST APIs?

I am planning to call SharePoint REST APIs from my application server-side code to add files and add metadata. I wanted to ask if there are any SDKs or libraries available for calling SharePoint REST ...
0 votes
1 answer
102 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 ...
0 votes
1 answer
209 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 ...
0 votes
1 answer
491 views

Setting Author/Editor via REST ValidateUpdateListItem - Works Online but not OnPrem

So I have been using the ValidateUpdateListItem endpoint to set the created and modified dates with no problems in both 2013/2019 and Online and now need to do the same for Author/Editor fields. I ...
  • 13
0 votes
0 answers
9 views

SharePoint SP Services error

I am getting an error - $(...).SPServices is not a function at AddListItem - with the below code. I have referenced the SPservices js correctly function AddPoints() { $().SPServices({ ...
0 votes
0 answers
157 views

SharePoint Online REST API using jQuery Ajax POST not working

I am using this code to POST into a SharePoint list. The code goes into the success function, but does not create a new item in the list. Can anyone help? function AddPoints(ID,Points) { var data =...
0 votes
1 answer
166 views

Invalid request changeset action

Not sure what I am doing wrong. I am trying to convert a POST request (which is working) to a batch but I am encountering this error/response. --batchresponse_f248d33f-065b-43a0-8dd7-d69e63e98579 ...
0 votes
1 answer
39 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 '...
0 votes
1 answer
186 views

Help with starting point for sharepoint online authenticator requests via VBA

I'm a user who maintains low-level VBA tools for myself and some colleagues. Some of the tools download or upload files from SharePoint online, treating the URLs as filepaths. I'm not familiar with ...
0 votes
2 answers
167 views

How to fetch only Site Pages and not page templates from Site Pages library using REST call?

I am trying to fetch only the site pages and not the page templates using REST call, but using below REST endpoint I am getting all the site pages including page templates. How to filter out only the ...
1 vote
0 answers
28 views

Edit and Delete options for each sharepoint list item using query Datatables?

How to use jquery Datatables to add - Edit and Delete options for each sharepoint list item. Please help me with an example.
1 vote
0 answers
81 views

How do you download the actual HTML content of a SharePoint Online page using OAuth credentials (Bearer token)?

How do you download the actual HTML content of a SharePoint Online page using OAuth credentials (Bearer token)? I want to download the HTML content from here: https://mytenant.sharepoint.com/sites/...
0 votes
2 answers
653 views

Permission issues trying to add projecetserver scope or access _api/ProjectData/* via HTML Requests using Bearer Token

Our server has Single-Sign-On, when I manually login, and go to below URL (in chrome) I am to get Projects XML OData Feed https://{server}.sharepoint.com/sites/pwa/_api/ProjectServer/Projects I need ...
  • 103

1
2 3 4 5
47