Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Matillion v1 API to import schedules

Does anyone know how to re-import a schedule list previously exported using https://sb-matillion.devfwh.lan/rest/v1/group/name/<>/project/name/<>/version/name/<>/export ?

2 Community Answers

Matillion Agent  

Kalyan Arangam —

Hi,

The API example you provided would export a project-version as JSON. The following command will help you import that version into a target.

curl -X POST -u api-user:api-password "http://10.12.2.93/rest/v1/group/name/Production%20Projects/project/name/My%20Project/version/import" -H "Content-Type: application/json" --data-binary @mtln_project_version.json

Please note that you cannot import into “default” version.

You did ask about importing Schedules. Here’s commands to Export and Import schedules.

+Export All Schedules in a Project +
curl -X GET -o mtln_project_schedules.json -u api-user:api-password “http://10.12.2.93/rest/v1/group/name/Demonstration%20Projects/project/name/Kalyan%20Arangam/schedule/export”

Export single schedule from a project
curl -X GET -o mtln_project_myschedule.json -u api-user:api-password “http://10.12.2.93/rest/v1/group/name/Demonstration%20Projects/project/name/Kalyan%20Arangam/schedule/name/My%20Schedule/export”

Import schedules into a Project
curl -X POST -u api-user:api-password “http://10.12.2.93/rest/v1/group/name/Demonstration%20Projects/project/name/Kalyan%20Arangam/schedule/import” -H “Content-Type: application/json” —data-binary @mtln_project_schedules.json

Hope that helps.

Kalyan


DevOps Account —

Thank you Kalyan, that worked out perfectly.

Post Your Community Answer

To add an answer please login