rushikeshkanekar
Nov 10, 2023Copper Contributor
Status:
New
Not able create sharepoint site using sharepoint api
endpoint = _api/SPSiteManager/create
payload = {
"request": {
"Title": "Rushi",
"Url":"https://xyz.sharepoint.com/sites/rushi",
"Lcid": 1033,
"ShareByEmailEnabled":false,
"Classification":"Low Business Impact",
"Description":"Test",
"WebTemplate":"SITEPAGEPUBLISHING#0",
"WebTemplateExtensionId":"00000000-0000-0000-0000-000000000000"
}
}
Response = {
"odata.metadata": "https://xyz.sharepoint.com/_api/$metadata#Microsoft.SharePoint.Portal.SPSiteCreationResponse",
"SiteId": "",
"SiteStatus": 3,
"SiteUrl": ""
}
header = Authorization and X-RequestDigest that is genrated dynamically.
Please help me to understand what is wrong with the API.
No CommentsBe the first to comment