by Raz tamim.
I think you need to look at update_moduleinfo see the reference here:https://wimski.org/api/4.1/d5/dd0/group__core__course.html#ga53b848d1785ef6d642e3f4d2a7223a6c