As I check out a new branch in git, I would like to also create a new version in Matillion, as can be done by a) Pressing the green "Project" button in the GUI and then b) choose "Create Version" in the menu. Can this be done?
2 Community Answers
Kalyan Arangam —
Here’s two API commands, one to export a specific version and then to import that file into a Project-Group and Project.
curl -X GET -o mtln_project_version.json -u api-user:api-user “http://10.12.2.93/rest/v1/group/name/Development%20Projects/project/name/My%20Project/version/name/SomeVersion/export”
Project group – Development Projects
Project Name – My Project
Version name – SomeVersion
This worked fine. I updated the version in the variable I called data, that I loaded from mtln_project_version.json, by setting data['objects']['name'] = my_new_version_name before saving to mtln_project_version.json.