Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
0 answers
4 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 ...
user avatar
  • 2,234
0 votes
1 answer
11 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 ...
user avatar
0 votes
0 answers
11 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 ...
user avatar
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 ...
user avatar
0 votes
2 answers
80 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 ...
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
0 votes
0 answers
17 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 ...
user avatar
  • 21
0 votes
0 answers
16 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.
user avatar
0 votes
0 answers
21 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 ...
user avatar
  • 12.1k
0 votes
0 answers
13 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 ...
user avatar
0 votes
0 answers
77 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 ...
user avatar
0 votes
1 answer
43 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 ...
user avatar
  • 1
0 votes
1 answer
103 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 ...
user avatar
  • 103
1 vote
1 answer
114 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 ...
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
0 answers
19 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 ...
user avatar
  • 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 ...
user avatar
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 ...
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
0 answers
29 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')...
user avatar
0 votes
1 answer
143 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 ...
user avatar
  • 103
0 votes
0 answers
17 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 ...
user avatar
  • 103
0 votes
1 answer
106 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/...
user avatar
0 votes
0 answers
18 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 ...
user avatar
0 votes
1 answer
19 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 ...
user avatar
0 votes
1 answer
64 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
142 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
274 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 ...
user avatar
  • 13
0 votes
0 answers
4 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({ ...
user avatar
0 votes
0 answers
106 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 =...
user avatar
0 votes
1 answer
72 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 ...
user avatar
0 votes
0 answers
20 views

Find Sharepoint lookup field source URL in different web using javaScript

I have a need to get information about a lookup column in a SharePoint list. The lookup column is a site column that lives in a top level site collection (there could be one ore more of these lookup ...
user avatar
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
100 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
1 answer
128 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 ...
user avatar
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
2 answers
94 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 ...
user avatar
1 vote
0 answers
24 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.
user avatar
1 vote
0 answers
60 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/...
user avatar
0 votes
0 answers
58 views

401 Error in SharePoint Online REST Call

I connect to a SharePoint site using its REST API (via Python), and things were working fine for me in SharePoint 2016. Our site admins migrated our installs to SharePoint Online, however, and the ...
user avatar
0 votes
2 answers
402 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 ...
user avatar
  • 103
2 votes
0 answers
53 views

SharePoint Online REST API monitoring

How can I track and monitor API calls made to my SharePoint Online? Is there any audit log or something to track these calls and diagnose bad API requests?
user avatar
  • 41
0 votes
0 answers
55 views

POST using sharepoint api and R

I want to get all the versions for files contained in a document library. I have been playing around with different end points but they are all too slow. I tried batch operations using flow but this ...
user avatar
0 votes
1 answer
300 views

SharePoint REST API - Return current user list item permission level with item data

With an items query like this: _api/web/lists/getbytitle('Docs')/items Is it possible to also include what permission level the current user has on a given item? My list items have unique permissions, ...
user avatar
  • 210
1 vote
2 answers
674 views

How to filter items with a date range using query parameters of Render list data as stream rest api? [closed]

Microsoft Documentation is providing filter operator which takes greater than, less than or equal to but it is working? RenderListDataAsStream URI parameters The documentation says we can use filterOP,...
user avatar
0 votes
2 answers
115 views

retrieve all files unders subfolders in sharepoint document library using REST

I have a folder in a document library and that contains subfolders and each subfolder contains files. I want to retrieve all the files in these subfolders using REST. Any help?
user avatar
0 votes
1 answer
244 views

REST API - How to retrieve managed metadata term guid from label

I'm using the REST API to add items to a list that has a managed metadata field (single valued, no items localization, all items have unique labels). The problem is that the code only knows the Label ...
user avatar
1 vote
2 answers
72 views

REST: Get edit / update metadata url / numeric id by guid

I'm creating a folder inside library via rest and as next step I search it again via /_api/web/lists/getbytitle('{docLibraryName}')/Items?$filter=(OpportunityNumber eq '{folderName}')&$top=1 to ...
user avatar
  • 111
1 vote
0 answers
157 views

How to determine user logged in and session not expired in SharePoint using JavaScript

I created a clientside application for SharePoint using javascript and jquery. We use Rest API for CURD operation on SharePoint Data and config Idle Session Timeout for the inactive user. After a user ...
user avatar
  • 31
0 votes
1 answer
48 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

1
2 3 4 5
46