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

Importing a single schedule, via V1 API

Hi,

I wanted to know how to import a single schedule via the V1 API into a Matillion project? I can perfectly export single schedules in json format, which I have done via this API map V1:
https://redshiftsupport.matillion.com/customer/portal/articles/2920263-api-v1-map#header4

But I don't see how to import a single schedule via the API via a post request.
I can perfectly export and import Matillion jobs, this is what I also want to do with schedules but it seems the API link on how to import it is missing?

Any help would be appreciated of course.

2 Community Answers

Matillion Agent  

Kalyan Arangam —

Hi Satrya,

Below are examples to export a single schedule to a file and then import it.

Export specific schedule

curl -X GET -o mtln_project_myschedule.json -u api-user:api-user "http://10.12.2.93/rest/v1/group/name/Demonstration%20Projects/project/name/My%20Project/schedule/name/My%20Schedule/export"

Import schedule(s) into a project

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

Please note that the same command works if you are importing one schedule or multiple.
Hope that helps.

Best
Kalyan


Satrya Sabeni —

Hi thanks you very much, this works!

Post Your Community Answer

To add an answer please login