classroom how to add a document url to an existing material, in an existing topic

39 Views Asked by At

I usually have about 70 classroom opened per month. All my classrooms have the same structure in Course Work section, sometimes I need to use scripts to add a pdf url or a mp3/mp4 url to a specific Material, that is inside a specific Topic.

Classroom.Courses.CourseWorkMaterials.create doesn't work in this case, because inserts the document in the existing topic, but creates a new material. It can't insert in an existing material, at least I haven't been able to figure out if it can do it.

Classroom.Courses.CourseWorkMaterials.patch modifies only some of the fields of the material, but can't add a link.

How can I fix this?

0

There are 0 best solutions below