Forum Discussion
buddhika_jayakodi
Jan 07, 2020Copper Contributor
cannot delete a folder in communication site using sharepoint rest apis
I have a share-point account with admin priviledges. I'm using share-point rest apis for deleting a folder in communication site. I was able to create a folder in share-point communication site. b...
IshtarOnline
Jan 07, 2020Copper Contributor
buddhika_jayakodi When using Postman you need to use a bearer token to access Sharepoint.
X-RequestDigest only works when you are communicating on Sharepoint with a logged in account.
Try using Ajax call in your console, then you can use x-requestdigest
buddhika_jayakodi
Jan 07, 2020Copper Contributor
IshtarOnline , I have set the bearer token in the request header, but the same result.