I am trying to execute a google script via API. I have authorized with all the necessary scopes and included my parameters, function, and dev mode:
POST https://script.googleapis.com/v1/scripts/{scriptId}:run
{
"devMode":true,
"function":"createNewSpreadsheetTrigger",
"parameters":["{fileId}"]
}
But keep getting a 403:
{
"error": {
"code": 403,
"message": "The caller does not have permission",
"status": "PERMISSION_DENIED"
}
}
I created this script with the same account that is trying to remotely execute.
Thoughts?
Thanks!