sharepoint-rest-api

How to perform a resumable Upload to a SharePoint Site (Not Root) Subfolder using MS Graph API

戏子无情 提交于 2021-02-05 11:35:09
问题 Documentation: https://docs.microsoft.com/en-us/graph/api/driveitem-createuploadsession?view=graph-rest-1.0 I am able to get the Drive ID of the sub site using the sites/domain/drives api. Using this and the driveId/root/children I can confirm several folders on this drive. If I use the API POST /drives/{driveId}/items/{itemId}/createUploadSession replacing the driveId with the drive ID and the itemId with the folder ID I get the following error { "error": { "code": "nameAlreadyExists",

How can I update/merge Web.MembersCanShare property-value from the Sharepoint REST API

喜你入骨 提交于 2020-01-16 08:38:10
问题 GET https://microsoft.sharepoint.com/****/_api/Web/MembersCanShare returns 'true' 200 OK <?xml version="1.0" encoding="utf-8"?> <d:MembersCanShare xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml" m:type="Edm.Boolean"> true </d:MembersCanShare> then request to update to 'false' POST https://microsoft.sharepoint.com/****/_api

Update SharePoint site title using Java REST API

泄露秘密 提交于 2020-01-14 05:41:07
问题 I am trying to update the SharePoint site title using Java REST API but I am unable to do so. I am able to connect to the SharePoint but I am unable to update the values. I am receiving HTTP/1.1 200 OK which means I have successfully connected to the SharePoint servers. 来源: https://stackoverflow.com/questions/57997256/update-sharepoint-site-title-using-java-rest-api

SharePoint Get all sites and all sub sites using SharePoint online REST API

空扰寡人 提交于 2019-12-13 17:58:28
问题 For SharePoint Online connector We used following steps to fetch all sites: Step 1: Created Add-in on SharePoint instance with following permission xml <AppPermissionRequests> <AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="FullControl"/> <AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="Read"/> </AppPermissionRequests> Step 2: Used below API to get all sites and subsites https://<site_name>.sharepoint.com/_api/search/query?querytext=

accessing sharepoint REST apis using msal throws 401

一曲冷凌霜 提交于 2019-12-11 08:48:05
问题 If i go to https://developer.microsoft.com/en-us/graph/graph-explorer# and use URL like: https://graph.microsoft.com/beta/sites/4development106.sharepoint.com:/sites/DBSchenker:/lists/OEC_Docs/items I can see request succeeds. Now if i use the angular app from github https://github.com/AzureAD/microsoft-authentication-library-for-js and the code like private sharePointHost: string = "https://4development106.sharepoint.com/sites/DBSchenker/_api/web/lists/getByTitle('OEC_Docs')/items"