Forum Discussion

Sebastian Krück's avatar
Sebastian Krück
Copper Contributor
Sep 11, 2017

SharePoint Online REST Webervice Site Collection Properties

Hello everybody, I've got a question regarding SharePoint Online and REST Webservices. Does anybody know, if it is possible to modify properties of a SharePoint Online Site Collection via REST Webservices? I'm trying to generate a POST request against https://url.sharepoint.com/sites/sitecollection/_api/site. But I always get error messages or "Access denied". And yes, I previously generated those authentication cookies and digest tokens to include them in the header of my request. 

  • 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.

Resources