Before I get into the details, the basic error is that a json response from postman for making requests to the Apps Script API Either returns a success or failure solely depending on the version of the script I have selected as an API executable.
Here are the details:
I am attempting to remotely execute a google apps script function through the API through postman. When publishing a test script that I am using to test our the API functionality as an API executable as a certain version, as seen here:
When making a post request to execute a function which returns nothing from this version of the script, I get the following response:
This response doesn't contain an ExecutionResponse object, presumably because my function doesn't return anything. I wanted to see if I could return data, though, so I updated this function to return a simple "helloWorld!" in version two of the script. When re-publishing as an API Executable, this time with version two published:
The postman response is this:
I can confirm that the error is reproducible solely by switching between versions of my script (and whether I've produced new credentials to reflect the API executable change doesn't change the response); that is the only variable changing between the two responses; no matter if I create new credentials after changing the version or not, the same difference in response is produced. What is accounting for the error here?