is it possible to export and import the default version via API?
We have 2 environments, DEV and PROD and we use a shell script to export/import jobs from DEV to PROD.
But sometimes the deployment package is really big and we would like to deploy the whole version (export from DEV => import to PROD) instead of giving a long list of jobs as a parameter to our script.
Unfortunately it's not possible to delete the default version, so our script can't import the "new" default version. Is there a workaround to do this or do we need to rename our versions and don't use "default"?
5 Community Answers
Laura Malins —
You’re right, you can’t replace a version in Matillion and you can’t delete default so you’ll need to either use a new version name or replace the whole project.
What I’d do is export the default version from your DEV, then change the version name in the JSON. This is just the name attribute in line 4. Then import this to PROD as a new version.
thank you for your answer. We changed version from "default" to "prod" and now we're able to deploy the whole version. But we have to switch the version each time we open the PROD project. Is there a way to automatically switch the version?