by Joscha Zander.
Hi moodle community,
i am trying to create courses and groups programmatically via the web service api (REST)....
Is there any detailed and complete documentation about every function? I am searching moodle.org and google for hours...
I am looking for something like this (please remark the details for values for integers or string arguments):
(found on http://www.refineddata.com/api/ )
core_course_create_courses
//courses to create list of ( object { fullname string //full name shortname string //course short name categoryid int //category id idnumber string Optional //id number summary string Optional //summarysummaryformat int Default to "1"//summary format (1 = HTML, 0 = MOODLE, 2 = PLAIN or 4 = MARKDOWN) format string Default to "topics" //course format: weeks, topics, social, site,.. showgrades int Default to "0" //1 if grades are shown, otherwise 0 newsitems int Default to "0" //number of recent items appearing on the course page startdate int Optional //timestamp when the course start numsections int Optional //(deprecated, use courseformatoptions) number of weeks/topics maxbytes int Default to "104857600" //largest size of file that can be uploaded into the course showreports int Default to "1" //are activity report shown (yes = 1, no =0) visible int Optional //1: available to student, 0:not available hiddensections int Optional //(deprecated, use courseformatoptions) How the hidden sections in the course are displayed to students groupmode int Default to "0" //no group, separate, visible groupmodeforce int Default to "0" //1: yes, 0: no defaultgroupingid int Default to "0" //default grouping id enablecompletion int Optional //Enabled, control via completion and activity settings. Disabled, not shown in activity settings.