Maybe I'm wrong, without much reading, I think you can create a data source and domain through resource services.
To update the report file using the resource service, you may need to modify the domainQuery node.
I pulled jrxml for my json based report file and looked something like this:
<resourceDescriptor name="domainQuery.xml" wsType="xml" uriString="/adhoc/topics/myjsonposts_files/domainQuery.xml" isNew="false">
Hope this helps you find a solution.
source share