I have been automating feature report exporting via the API and I noticed a change this week that caused it to stop working with no change on my end.
The sequence is to submit a job using
https://survey123.arcgis.com/api/featureReport/createReport/submitJob
with several parameters such as queryParameters, templateItemId, outputReportName, surveyItemId, featureLayerUrl, uploadInfo, outputFormat.
Then follow up with
https://survey123.arcgis.com/api/featureReport/jobs/<job_id>/status
until the job returns esriJobSucceeded
Starting this week, the status query returns esriJobFailed with a message
"An error occurred when uploading result files to ArcGIS Online. 498: Invalid token."
It seems that the report gets created but it can't upload it to ArcGIS Online. I use the same token for the initial submitJob request and the status requests.
This has been working for a few months with no problem. I wonder if there was an update behind the scenes that changed something.