Skip to main content

Hello All,
I am trying to use “learn/v1/courses/batch” to batch import some courses.

I had three main questions and I would appreciate any thought regarding these:

1) I am not sure what is accepted as “course_cover”
 'success': False, 'message': 'Invalid cover image extension'

2) How can I assign a course to catalog using “learn/v1/courses/batch” ?
Do I need to make another request to “learn/v1/catalog/course/batch” to update the catalog?

3) Which endpoint can I use to batch update some courses? does “learn/v1/courses/batch” accept only POST and new courses?

Thanks

As far as I know:

  1. This should be the full URL to the image and should end in an acceptable image format like .jpg or .png
  2. Yes you have to do two calls for this.
  3. I don’t believe so, only Batch import new, update individuals using the PUT /learn/v1/courses/{id} since the batch doe snot have a way to set the existing course ID, it wouldn’t know what to update.

Reply