I am trying to install site scripts from provider hosted app. I am able to get the installed scripts by /_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility.GetSiteScripts endpoint. But when I am trying to create scripts it is giving me 401 unauthorized error. i am doing app only calls.
Does App should have access at tenant level to install the scripts?
As of now my PHA is having full control on site collection.
I am trying to install site scripts from provider hosted app. I am able to get the installed scripts by
/_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility.GetSiteScripts
endpoint. But when I am trying to create scripts it is giving me 401 unauthorized error. i am doing app only calls. Does App should have access at tenant level to install the scripts? As of now my PHA is having full control on site collection.