Getting 500 error when trying to create site using SharePoint rest API -


i using sharepoint rest api given in documentation create site. using client credentials grant flow authorisation. using global admin grant access our app. works fine tenants tenants giving 500 error empty exception message.

request :

method - post url - "http://<site url>/_api/web/webs/add" headers -      "authorization": 'bearer ' + access_token     "content-type" : "application/json;odata=verbose" 

for tenants creating site tenants giving error.

status code: 500 error: {u'error': {u'message': {u'lang': u'en-us', u'value': u''}, u'code': u'-2146232060, microsoft.sharepoint.spexception'}} 

so question there other parameters or permissions global admin in sharepoint online required create site using global admin authorisation? , since there empty error message error code "-2146232060" gives additional information can me in debugging this?

edit **** checking other answers 500 error tells check updated value of form digest. in case using oauth flow not using form digest.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -