This endpoint allows you to upload a new file to a data source of type File.
/api/custom/DataSource/ChangeFile/{DATASOURCEID}
CODE
{DATASOURCEID}
can be found by editing the data source in the App at the top of the form.

Limitations: (might be subject to change)
Example curl request:
curl -X POST \
'https://external-data-for-jira.codefortynine.com/api/custom/DataSource/ChangeFile/{DATASOURCEID}' \
-u 'username:password' \
--form 'file=@/path/to/file/datasource_data.json'
CODE