Require parameters for method "core_course_create_courses" using REST webservices

Re: Require parameters for method "core_course_create_courses" using REST webservices

by Praneeth D -
Number of replies: 0

Hi Davo,

 Thanks for sharing the details. Our goal is to align the courses as shown below-

 Main Category

                Thesis1 Thesis Course1

                                CourseTemplate

                 Thesis2 Thesis Course2

                                CourseTemplate

                 Thesis3 Thesis Course3

                                CourseTemplate

 Note:

·         The CategoryID for the "Main Category" is 7.

·         We have created a Template "CourseTemplate" under the "Main Category". This template should be added to all the courses mapped under "Main Category". This template would be common for all courses (say, Thesis1 Thesis Course1, Thesis2 Thesis Course2, Thesis3 Thesis Course3 & etc)

·         The ID value for the "CourseTemplate" is 111.

 

 &wstoken=xxxxxxxx

&wsfunction=core_course_create_courses

&courses[0][fullname]=Thesis Course1

&courses[0][shortname]=Thesis1

&courses[0][categoryid]=7 (category id of “Main Category”)

&courses[0][idnumber]=000000000349 (Optional value)

&courses[0][courseformatoptions][0][name]=Template (static text)

&courses[0][courseformatoptions][0][value]=111 (id value for the template “CourseTemplate”)

 

But the value did not meet the requirement. We are able to achive to create the courses Thesis1 Thesis Course1, Thesis1 Thesis Course1 & Thesis1 Thesis Course1 but the template "CourseTemplate" is not getting added under these courses.

 

Please help.

Thanks,

Praneeth