Uploading Course Banner from External Platform

Uploading Course Banner from External Platform

by John Vincent Villanueva -
Number of replies: 0

Hi everyone,

I am currently developing a system where I can update Moodle LMS from an external platform. So far, I have no problem on creating and updating the courses' details using the web API. However, I hit a dead-end when it comes to uploading the course image.

I've read the documentation for the Web API and I cant find any function that suited my need. The closest thing that I can use is "core_files_upload", but this does not point the uploaded file as a course banner. Is it possible to point the uploaded file as a course image using "core_files_upload" function? If so, can someone guide me on how to achieve this?

Thank You!
Attachment Moodle-Exp1.png
Average of ratings: -