Controlling Data Sources Programmatically


I am working on building an automated deployment of Redash from source. As part of that I would like to be able to create and update data sources programmatically, especially since I am using Vault from Hashicorp to generate the credentials to the various databases that I am connecting to. Is there any way to control the data sources via a file on disk, or an API call? Or is the only option to manage the database records in the redash database?