The behaviour of the JES API appears to have changed in the last year or so, and we need some help getting our (previously functional) code to work!
We are running a Job (using POST /jobExecution/jobs - https://developer.sas.com/rest-apis/jobExecution/createJob ) that returns a JSON file generated using the following code (as described here )
filename _webout filesrvc parenturi="&SYS_JES_JOB_URI" name="_webout.json";
data _null_;
file _webout;
put '{"name" : "value")';
run;
The exact API request looks like this:

With the following payload:

We then poll for results using: /jobExecution/jobs/db8810ec-7282-4093-a0f9-41f693ebf359/state?_action=wait&wait=300
And finally fetch the results using: /jobExecution/jobs/db8810ec-7282-4093-a0f9-41f693ebf359
With the following response:

We have tried tweaking the arguments, to no avail.
The _webout fileref is definitely created. We have also tried using the RESULTFILE option.

How to get the _webout result location returned to the JES API triggered Job?
/Allan
MacroCore library for app developers
Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs