Forum Discussion
SharePoint Online REST Webervice Site Collection Properties
Ok, I'm one step closer, but did not find the final solution. I got the Access Denied message, because I was still missing one Access Token in my request header. So, no authentication problems anymore. Now I have error message "400 Bad Request". So I think my body message is wrong. I'm trying to set the shareing capabilities. My body looks like that: { "__metadata": { "type": "SP.Site" }, "ShareByEmailEnabled": "true"}
Does anybody have an idea, whats wrong? Or is modifying those properties blocked by Microsoft?
Thanks for your help.
- Oliver ZeiserOct 06, 2017Brass ContributorThis won't work. If you want to update the sharing capabilities, you need to set them via siteproperties: https://msdn.microsoft.com/en-us/library/microsoft.online.sharepoint.tenantadministration.siteproperties.sharingcapability.aspx
- Sebastian KrückOct 09, 2017Copper Contributor
Hi Oliver,
thanks for your answer. Do you know a page or a TechNet article or anything else, whre it is written down, that it is not possible to set it via REST?
And do you or anybody else know, if it is possible to set site collection administrators via REST Webservice?