Skip to main content

Hi everyone,

is it possible to set the course thumbnail via API? I have been searching for a while now but I can only find different ways to get information about it.

Hi @janina.zielecki this one would allow you to update your courses and I think it allows you to ad a thumbnail although the code just calls it “image”

https://doceboapi.docebosaas.com/api-browser/#!/learn/Course/Course_learn_v1_courses_id_0


I believe it is that update course api, but there is a thumbnail_id field that I use for this:

yoururl/api-browser/#!/learn/Course/Course_learn_v1_courses_id_0

Its a PUT /learn/v1/courses/{id}

Body:

{
  "thumbnail_id": 395
}

 

The tricky part is finding the thumbnail id, what I typically did was just look up a course that was using it using the View Course API and have a little database of the id’s:

GET /learn/v1/courses/{id}


Hi @lrnlab & @Bfarkas! Thanks for the help! I succesfully put a thumbnail into an existing course! 😀🙌 But collecting the IDs in advance is a bit annoying. I was hoping for an easier solution. 😉

Let’s see how I can use this for my automation.

Best,
Janina


Yeah, annoying, but you have to have the file loaded already anyways so I’ve gotten in the habit of just having an extra course, loading them and pulling their id and then I have a SharePoint list that acts as a lookup table for automations on it. 


Thinking about this now, and having just come from doing an update in a different platform that handles this better, I wonder if like an admin dashboard for IDs would be useful. Central spot that you flip through categories of items and find id’s. I’m gonna put up an idea and see if theres any support for it.


Perfect! I was thinking about something similar, too! 🤓


Perfect! I was thinking about something similar, too! 🤓

 


Any1 can help me with the thumbnail API? I’m doing this manually now & I’m beginner to the APIs feature. Could you please share me any documents you have used for API call?


Reply