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
0answers
2 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
0answers
9 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
1answer
25 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 ...
0
votes
0answers
9 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 ...
0
votes
1answer
26 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
0answers
15 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
1answer
8 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
1answer
19 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
1answer
44 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
0answers
56 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 ...
0
votes
0answers
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({ ...
0
votes
0answers
40 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
1answer
16 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
0answers
7 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 ...
0
votes
1answer
31 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
0answers
33 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=...
0
votes
1answer
71 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
0answers
35 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: "...
0
votes
2answers
38 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
0answers
17 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
0answers
44 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
0answers
21 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 ...
0
votes
2answers
172 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 ...
1
vote
0answers
27 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?
0
votes
0answers
26 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 ...
0
votes
1answer
98 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, ...
1
vote
2answers
316 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,...
0
votes
2answers
46 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?
0
votes
1answer
126 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 ...
1
vote
2answers
41 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 ...
1
vote
0answers
124 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 ...
0
votes
1answer
28 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=&...
0
votes
2answers
105 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/ ...
0
votes
0answers
48 views

Update Person or group column using SharePoint 2010 Rest Interface

I am trying to update a people or group column using SharePoint 2010 Rest Interface in Power Automate. Only this seems to update the properties of the File even if some other user is editing it ...
0
votes
0answers
32 views

Why does Get-SPOSite Fail Intermittently?

Has anyone else seen this intermittent error with Sharepoint Online service: Get-SPOSite -identity https://<mysite>.sharepoint.com/sites/100060-24 Get-SPOSite : Cannot get site https://<...
0
votes
1answer
145 views

GET SharePoint Managed Metadata Field with REST API Giving Error

I am trying to retrieve a Managed Metadata column from a SharePoint list using a REST call. The column/field name is Department. I found this site, https://threewill.com/pulling-managed-metadata-...
0
votes
1answer
30 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 ...
0
votes
1answer
114 views

project online rest api date fields

What format does Project Online save dates? In the ProjectData api, I can see all of the date fields saved as /Date(1612944000000)/ . Using the /_api/web for the actual project subsites, you see ...
0
votes
1answer
53 views

PWA/Project Online - Setting Project ID dynamically with REST

I am trying to dynamically set the Project UID in an Angular app which is deployed to every subsite throughout my PWA. I need to be able to ideally, store the Project UID in a global variable which I ...
0
votes
1answer
28 views

Problem with REST Api

I have writen a URL for REST API: /_api/web/lists/GetByTitle('KomorkaOrganizacyjna')/Items(1)?$select=Title,MPK,Skrot,Informacje_o_komorce,Prze_x0142_o_x017c_ony/Title,Kierownik/Title,...
0
votes
0answers
23 views

I Have got List of workers and menager in list wchich I read by REST API

What Should I Write in declarations and in return code to get this users name and photos. Here is REST returns: What should I change to get users name and surnames and photo os users ? And here is ...
0
votes
1answer
35 views

How to EnsureUser with AD group in REST

I am trying to add AD group to SharePoint site in REST using EnsureUser but I kept getting error message "The specified user c:0+.w|S-1-5-21-1814438218-152777602-930774774-762833 could not be ...
1
vote
0answers
49 views

OData query to get a field values by column position in the list

So I want an OData query that allows me to get the field and its values by position in the viewable list. In the above picture, for example, I want the values in the "Title" column but that ...
0
votes
0answers
79 views

Rest api caml query not returning field in ViewFields

I have a CAML query that I am running through the REST api, the simple example below requests 2 fields - FileLeafRef and CustomField. Custom field is simple a text field, nothing special. CustomField ...
0
votes
0answers
17 views

Change icon of a folder via JSOM/REST

SP2013 on-premise: I sporadically happens that a document set gets created and is displayed with a folder icon rather than a document set icon. Does anyone have a JSOM/REST snippet to change a ...
0
votes
1answer
173 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('...
0
votes
1answer
27 views

Unable to match a subtasks to its parent tasks REST API

I am able to get the tasks and subtasks from a SharePoint list using the REST API. How can I match a subtask with its parent task? The following JS inside an AngularJS controller returns two lists, ...
0
votes
1answer
101 views

SharePoint REST API - Fetching folders from subsite

I am new to using SharePoint online REST API's. I started with basics by connecting to SharePoint online via Postman and list folders in a subsite. So I have achieved the first step of connecting to ...
0
votes
0answers
12 views

Is there any api to get anonymous links from a sharepoint site?

I am not able to find any REST apis to get anonymous links information from a selected SharePoint site. That api is not yet available? I have checked in PnPJS site also, and nothing found in that.
0
votes
0answers
35 views

Project Server - Updating notes on a task through REST/CSOM

I've been racking my brain over this for a while and Googling has failed me so I was hoping I could get some help here. I just want to be able to update the Notes field on a Project Task in Project ...

1
2 3 4 5
46