Course Completion API

Course Completion API

core_completion_get_activities_completion_status

Arguments
courseid (Required)
        Course ID

General structure
int   //Course ID

REST (POST parameters)
courseid= int
userid (Required)
        User ID


General structure
int   //User ID


REST (POST parameters)
userid= int

core_completion_get_course_completion_status

Arguments
courseid (Required)
        Course ID

General structure
int   //Course ID

REST (POST parameters)
courseid= int
userid (Required)
        User ID


General structure
int   //User ID


REST (POST parameters)
userid= int

core_completion_override_activity_completion_status

Arguments
userid (Required)
        user id

General structure

int   //user id
REST (POST parameters)
userid= int
cmid (Required)
        course module id

General structure
int   //course module id

REST (POST parameters)
cmid= int
newstate (Required)
        the new activity completion state

General structure
int   //the new activity completion state

REST (POST parameters)
newstate= int



    • Related Articles

    • Course API

      core_course_get_courses Arguments options (Default to "Array ( ) ")         options - operator OR is used General structure  Default to "Array ( ) " //options - operator OR is used object { ids  Optional //List of course id. If empty return all ...
    • Course Groups API

      core_group_add_group_members Arguments members (Required) General structure list of (  object { groupid int   //group record id userid int   //user id }  ) REST (POST parameters) members[0][groupid]= int members[0][userid]= int ...
    • Enrollment API

      enrol_manual_enrol_users Arguments enrolments (Required) General structure list of (  object { roleid int   //Role to assign to the user userid int   //The user that is going to be enrolled courseid int   //The course to enrol the user role in ...
    • Grades API

      gradereport_overview_get_course_grades Arguments userid (Default to "0")         Get grades for this user (optional, default current) General structure int  Default to "0" //Get grades for this user (optional, default current) REST (POST parameters) ...
    • Calendar API

      core_calendar_create_calendar_events Arguments events (Required) General structure list of (    //event object { name string   //event name description string  Default to "null" //Description format int  Default to "1" //description format (1 = HTML, ...