Learning about SharePoint API's

%3CLINGO-SUB%20id%3D%22lingo-sub-1420036%22%20slang%3D%22en-US%22%3ELearning%20about%20SharePoint%20API's%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1420036%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20learning%20about%20the%20SharePoint%20API's%20from%20the%20Documentation%20available%20and%20tried%20performing%20the%20actions%20through%20Postman%20tool.%3C%2FP%3E%3CP%3EI%20am%20able%20to%20do%20the%20Get%20request%20(for%20example%3A%20Get%20Folders)%20in%20the%20postman%20tool%20but%20when%20I%20am%20trying%20to%20perform%20Post%20request%20(for%20example%3A%20Delete%20Folder)%20then%20the%20error%20message%20is%20%22Access%26nbsp%3Bdenied.%26nbsp%3BYou%26nbsp%3Bdo%26nbsp%3Bnot%26nbsp%3Bhave%26nbsp%3Bpermission%26nbsp%3Bto%26nbsp%3Bperform%26nbsp%3Bthis%26nbsp%3Baction%26nbsp%3Bor%26nbsp%3Baccess%26nbsp%3Bthis%26nbsp%3Bresource%22.%3C%2FP%3E%3CP%3ECan%20I%20know%20the%20reason%20for%20this%3F%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1420036%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPIs%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1422812%22%20slang%3D%22en-US%22%3ERe%3A%20Learning%20about%20SharePoint%20API's%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1422812%22%20slang%3D%22en-US%22%3E%3CP%3EPerforming%20from%20Postman%20you%20are%20essentially%20performing%20an%20external%20call%20and%20as%20such%20need%20to%20provide%20authentication%2C%20which%20can%20be%20done%20but%20is%20more%20complex%20to%20start.%3CBR%20%2F%3E%3CBR%20%2F%3EUsing%20a%20chrome%20Extension%20like%20SP%20Insider%20you%20can%20perform%20API%20calls%20(REST%20and%20Search)%20from%20within%20an%20authenticated%20session%20in%20the%20browser%20window%20and%20as%20such%20can%20skip%20the%20need%20to%20manually%20setup%20the%20authentication.%20This%20is%20generally%20how%20you%20webpart%20code%20will%20run%20also%2C%20within%20the%20context%20of%20the%20user's%20browser%20session.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1425865%22%20slang%3D%22en-US%22%3ERe%3A%20Learning%20about%20SharePoint%20API's%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1425865%22%20slang%3D%22en-US%22%3EI%20am%20able%20to%20provide%20the%20authentication%20(generated%20the%20access%20token%20using%20client%20id%2C%20secret%2C%20Tenant%20id)%20but%20I%20couldn't%20perform%20post%20request%20API%20calls.%3CBR%20%2F%3EIs%20there%20anything%20to%20do%20with%20account%20permissions%2C%20just%20curios..%3CBR%20%2F%3EFYI%3A%20I%20am%20successful%20in%20retrieving%20the%20data%20(Get%20request%20API%20calls).%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi, 

I am learning about the SharePoint API's from the Documentation available and tried performing the actions through Postman tool.

I am able to do the Get request (for example: Get Folders) in the postman tool but when I am trying to perform Post request (for example: Delete Folder) then the error message is "Access denied. You do not have permission to perform this action or access this resource".

Can I know the reason for this??

2 Replies
Highlighted

Performing from Postman you are essentially performing an external call and as such need to provide authentication, which can be done but is more complex to start.

Using a chrome Extension like SP Insider you can perform API calls (REST and Search) from within an authenticated session in the browser window and as such can skip the need to manually setup the authentication. This is generally how you webpart code will run also, within the context of the user's browser session.

Highlighted
I am able to provide the authentication (generated the access token using client id, secret, Tenant id) but I couldn't perform post request API calls.
Is there anything to do with account permissions, just curios..
FYI: I am successful in retrieving the data (Get request API calls).