Skip to main content

I have to create a number of catalogs, each catalog will have 20-50 courses from my existing list of 400+ courses.

Has anyone found a way to do this either via CSV or API? 

There is an api in the api explorer, POST  /learn/v1/catalog/course/batch

that seems to be the one I’m after but i am not sure how to configures the JSON with a list of courses,

{
  "items": m
    {
      "course_id": 0,
      "catalog_id": 0,
      "batch_item_id": "string"
    }
  ]
}

 BTW what is the “batch_item_id": "string"

I can do it individually with the POST    /learn/v1/catalog/{catalog_id}/course/{course_id}   1 course at a time and it works fine.

 

any assistance gratefully received

 

Thanks

 

Gary

 

 

While API’s are handy, unless you know how to code them they can be very tricky and potentially cause issues if you don't use them correctly. For the number of courses and catalogues you have, it would be just a quick to just add them to the catalogue manually.


I have not had much luck with the batch for assigning catalogs, I end up using the single point that you describe above and just have it programmed to loop through the list of id’s so it is quick, but required the standup time of the process, was worth it to handle regularly, but like @lrnlab mentions, if not doing often may not be worth it for you.


Reply