{"swagger":"2.0","info":{"description":"aNewSpring API specification","title":"aNewSpring API","version":"5.2.3"},"basePath":"/api","tags":[{"name":"users","description":"User management"},{"name":"groups","description":"(User) group management"},{"name":"resellers","description":"Reseller management"},{"name":"sso","description":"Single sign-on"},{"name":"subscriptions","description":"(Course) subscription management"},{"name":"courses","description":"Course (instance) management"},{"name":"events","description":"Calendar item management"},{"name":"accessCodes","description":"Access code (group) management"},{"name":"bookableEvents","description":"Event management"}],"schemes":["http","https"],"security":[{"Header":[]},{"Parameter":[]}],"securityDefinitions":{"Header":{"type":"apiKey","name":"X-API-Key","in":"header"},"Parameter":{"type":"apiKey","name":"_key","in":"query"}},"paths":{"/userExists/{ID}":{"get":{"tags":["users"],"summary":"Check if user exists","description":"This can be used to check if a certain user exists in the learning environment.","operationId":"userExists","parameters":[{"$ref":"#/parameters/ID"}],"produces":["application/json","application/xml","text/plain"],"responses":{"200":{"$ref":"#/responses/Boolean"}}}},"/getUser/{ID}":{"get":{"tags":["users"],"summary":"Get user","description":"This can be used to obtain the (personal) details of the specified user.","operationId":"getUser","parameters":[{"$ref":"#/parameters/ID"}],"produces":["application/json","application/xml"],"responses":{"200":{"description":"success","schema":{"$ref":"#/definitions/User"}}}}},"/getUsers":{"get":{"tags":["users"],"summary":"Get all users","description":"This can be used to obtain (a core set of details of) all users in the learning environment.","operationId":"getUsers","produces":["application/json","application/xml"],"responses":{"200":{"description":"success","schema":{"properties":{"users":{"type":"array","items":{"$ref":"#/definitions/UserCore"},"xml":{"wrapped":true}}}}}}}},"/initializeId/{login}/{ID}":{"post":{"tags":["users"],"summary":"Initialize user ID","description":"This can be used to set the ID of an existing user who does not have an ID yet.","operationId":"initializeId","consumes":["application/x-www-form-urlencoded"],"parameters":[{"name":"login","in":"path","type":"string","required":true,"description":"the login of the user"},{"$ref":"#/parameters/ID"}],"responses":{"200":{"description":"success"},"404":{"description":"no user exists with the specified login"},"409":{"description":"the user already has an ID or if the ID is already used"}}}},"/addUser/{ID}":{"post":{"tags":["users"],"summary":"Add user","description":"This can be used to add a new user to the learning environment. All parameters except ID are optional, but keep in mind that users without a name can result in unforeseen situations on certain screens.","operationId":"addUser","consumes":["application/x-www-form-urlencoded","multipart/form-data"],"parameters":[{"$ref":"#/parameters/ID"},{"$ref":"#/parameters/Login"},{"$ref":"#/parameters/FirstName"},{"$ref":"#/parameters/MiddleName"},{"$ref":"#/parameters/LastName"},{"$ref":"#/parameters/Gender"},{"$ref":"#/parameters/UserTitle"},{"$ref":"#/parameters/Initials"},{"$ref":"#/parameters/Email"},{"$ref":"#/parameters/Function"},{"$ref":"#/parameters/Company"},{"$ref":"#/parameters/DateOfBirth"},{"$ref":"#/parameters/TelephoneNumber"},{"$ref":"#/parameters/FaxNumber"},{"$ref":"#/parameters/CellPhoneNumber"},{"$ref":"#/parameters/Address"},{"$ref":"#/parameters/Zip"},{"$ref":"#/parameters/Residence"},{"$ref":"#/parameters/Country"},{"$ref":"#/parameters/InvoiceAddress"},{"$ref":"#/parameters/InvoiceZip"},{"$ref":"#/parameters/InvoiceResidence"},{"$ref":"#/parameters/InvoiceCountry"},{"$ref":"#/parameters/Custom1"},{"$ref":"#/parameters/Custom2"},{"$ref":"#/parameters/Custom3"},{"$ref":"#/parameters/Custom4"},{"$ref":"#/parameters/Custom5"},{"$ref":"#/parameters/Locale"},{"$ref":"#/parameters/TimeZoneGroup"},{"$ref":"#/parameters/TimeZone"},{"$ref":"#/parameters/Role"},{"$ref":"#/parameters/Password"},{"$ref":"#/parameters/GeneratePassword"},{"$ref":"#/parameters/ForcePasswordChange"},{"$ref":"#/parameters/Notify"},{"$ref":"#/parameters/Active"},{"$ref":"#/parameters/Avatar"},{"$ref":"#/parameters/DeleteAvatar"}],"responses":{"200":{"description":"success"},"409":{"description":"a user with the specified ID already exists | setting force password change is not allowed | user is archived"}}}},"/updateUser/{ID}":{"post":{"tags":["users"],"summary":"Update user","description":"This can be used to update an existing user in the learning environment.","operationId":"updateUser","consumes":["application/x-www-form-urlencoded","multipart/form-data"],"parameters":[{"$ref":"#/parameters/ID"},{"$ref":"#/parameters/NewID"},{"$ref":"#/parameters/Login"},{"$ref":"#/parameters/FirstName"},{"$ref":"#/parameters/MiddleName"},{"$ref":"#/parameters/LastName"},{"$ref":"#/parameters/Gender"},{"$ref":"#/parameters/UserTitle"},{"$ref":"#/parameters/Initials"},{"$ref":"#/parameters/Email"},{"$ref":"#/parameters/Function"},{"$ref":"#/parameters/Company"},{"$ref":"#/parameters/DateOfBirth"},{"$ref":"#/parameters/TelephoneNumber"},{"$ref":"#/parameters/FaxNumber"},{"$ref":"#/parameters/CellPhoneNumber"},{"$ref":"#/parameters/Address"},{"$ref":"#/parameters/Zip"},{"$ref":"#/parameters/Residence"},{"$ref":"#/parameters/Country"},{"$ref":"#/parameters/InvoiceAddress"},{"$ref":"#/parameters/InvoiceZip"},{"$ref":"#/parameters/InvoiceResidence"},{"$ref":"#/parameters/InvoiceCountry"},{"$ref":"#/parameters/Custom1"},{"$ref":"#/parameters/Custom2"},{"$ref":"#/parameters/Custom3"},{"$ref":"#/parameters/Custom4"},{"$ref":"#/parameters/Custom5"},{"$ref":"#/parameters/Locale"},{"$ref":"#/parameters/TimeZoneGroup"},{"$ref":"#/parameters/TimeZone"},{"$ref":"#/parameters/Password"},{"$ref":"#/parameters/GeneratePassword"},{"$ref":"#/parameters/ForcePasswordChange"},{"$ref":"#/parameters/Notify"},{"$ref":"#/parameters/Active"},{"$ref":"#/parameters/Avatar"},{"$ref":"#/parameters/DeleteAvatar"}],"responses":{"200":{"description":"success"},"409":{"description":"a user with the specified ID already exists | setting force password change is not allowed | user is archived"}}}},"/addOrUpdateUser/{ID}":{"post":{"tags":["users"],"summary":"Add or update user","description":"This can be used to add or update a user, depending or whether the user already exists in the learning environment. The allowed parameters depend on whether the user is added or updated (see [addUser](#!/users/addUser) and [updateUser](#!/users/updateUser)).","operationId":"addOrUpdateUser","consumes":["application/x-www-form-urlencoded","multipart/form-data"],"responses":{"200":{"description":"success"},"409":{"description":"a user with the specified ID already exists | setting force password change is not allowed | user is archived"}}}},"/addUserRoles/{userID}":{"post":{"tags":["users"],"summary":"Add user roles","description":"This can be used to add roles to an existing user.","operationId":"addUserRoles","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/UserID"},{"$ref":"#/parameters/Role"},{"name":"ignoreDuplicates","in":"formData","type":"string","enum":[true,false],"default":false,"description":"ignore roles that the user already has"}],"responses":{"200":{"description":"success"},"404":{"description":"no user exists with the specified ID"},"409":{"description":"a user already has a specified role (and <b>ignoreDuplicates</b> is <b>false</b>)"}}}},"/deleteUser/{ID}":{"post":{"tags":["users"],"summary":"Delete user","description":"This can be used to remove an existing user.","operationId":"deleteUser","parameters":[{"$ref":"#/parameters/ID"}],"responses":{"200":{"description":"success"},"404":{"description":"no user exists with the specified ID"}}}},"/linkAuthorToContentLabels/{userID}/":{"post":{"tags":["users"],"summary":"Link author to one ore more content libraries","description":"This can be used to link an existing user with the author role to existing content libraries.","operationId":"linkAuthorToContentLabels","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/UserID"},{"name":"contentLabel","in":"formData","type":"array","items":{"type":"string"},"collectionFormat":"multi","required":true,"description":"the external ID of the content library, this parameter can occur multiple times"},{"name":"ignoreDuplicates","in":"formData","type":"string","enum":[true,false],"default":false,"description":"ignore content libraries which are already linked to the author"}],"responses":{"200":{"description":"success"},"404":{"description":"no author or content library exists with the specified ID"},"409":{"description":"the author is already linked to the content library (and ignoreDuplicates is false) | the user doesn't have the author role"}}}},"/linkDesignerToContentLabels/{userID}/":{"post":{"tags":["users"],"summary":"Link designer to one or more content libraries","description":"This can be used to link an existing user with the designer role to existing content libraries.","operationId":"linkDesignerToContentLabels","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/UserID"},{"name":"contentLabel","in":"formData","type":"array","items":{"type":"string"},"collectionFormat":"multi","required":true,"description":"the external ID of the content library, this parameter can occur multiple times"},{"name":"ignoreDuplicates","in":"formData","type":"string","enum":[true,false],"default":false,"description":"ignore content libraries which are already linked to the designer"}],"responses":{"200":{"description":"success"},"404":{"description":"no designer or content library exists with the specified ID"},"409":{"description":"the designer is already linked to the content library (and ignoreDuplicates is false) | the user doesn't have the designer role"}}}},"/unlinkAuthorFromContentLabels/{userID}/":{"post":{"tags":["users"],"summary":"Unlink author from one or more content libraries","description":"This can be used to unlink an existing user with the author role from existing content libraries.","operationId":"unlinkAuthorFromContentLabels","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/UserID"},{"name":"contentLabel","in":"formData","type":"array","items":{"type":"string"},"collectionFormat":"multi","required":true,"description":"the external ID of the content library, this parameter can occur multiple times"},{"name":"ignoreMissing","in":"formData","type":"string","enum":[true,false],"default":false,"description":"ignore content libraries which are not linked to the author"}],"responses":{"200":{"description":"success"},"404":{"description":"no author or content library exists with the specified ID"},"409":{"description":"the author is not linked to the content library (and ignoreMissing is false) | the user doesn't have the author role"}}}},"/unlinkDesignerFromContentLabels/{userID}/":{"post":{"tags":["users"],"summary":"Unlink designer from one or more content libraries","description":"This can be used to unlink an existing user with the designer role from one or more existing content libraries.","operationId":"unlinkDesignerFromContentLabels","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/UserID"},{"name":"contentLabel","in":"formData","type":"array","items":{"type":"string"},"collectionFormat":"multi","required":true,"description":"the external ID of the content library, this parameter can occur multiple times"},{"name":"ignoreMissing","in":"formData","type":"string","enum":[true,false],"default":false,"description":"ignore content libraries which are not linked to the designer"}],"responses":{"200":{"description":"success"},"404":{"description":"no designer or content library exists with the specified ID"},"409":{"description":"the designer is not linked to the content library (and ignoreMissing is false) | the user doesn't have the designer role"}}}},"/getLoginToken/{ID}":{"get":{"tags":["sso"],"summary":"Get login token","description":"This can be used to obtain a login token for the specified user. This token can be used to log in the user via SSO.","operationId":"getLoginToken","parameters":[{"$ref":"#/parameters/ID"}],"produces":["application/json","application/xml","text/plain"],"responses":{"200":{"description":"success","schema":{"properties":{"result":{"type":"string","example":"24345226-ec3a-4d90-a5d0-aa99c80ec491","xml":{"name":"value"}}},"xml":{"name":"result"}}},"404":{"description":"no user exists with the specified ID"}}}},"/isSubscribed/{userID}/{courseID}":{"get":{"tags":["subscriptions"],"summary":"Check if user is subscribed to course","description":"This can be used to check if a certain user is enroled in a certain course.","operationId":"isSubscribed","parameters":[{"$ref":"#/parameters/UserID"},{"$ref":"#/parameters/CourseID"}],"produces":["application/json","application/xml","text/plain"],"responses":{"200":{"$ref":"#/responses/Boolean"},"404":{"description":"no user and/or course exists with the specified ID"}}}},"/getSubscriptions/{userID}":{"get":{"tags":["subscriptions"],"summary":"Get subscriptions for user","description":"This can be used to obtain the subscriptions of the specified user.","operationId":"getSubscriptions","parameters":[{"$ref":"#/parameters/UserID"},{"name":"skipStats","in":"formData","type":"string","enum":[true,false],"default":false,"description":"don't calculate statistics (progress, knowledgeIntake, efficiency, objectivesProgress) for performance"}],"produces":["application/json","application/xml"],"responses":{"200":{"description":"success","schema":{"properties":{"courses":{"type":"array","items":{"$ref":"#/definitions/Subscription"},"xml":{"wrapped":true}}}}},"404":{"description":"no user exists with the specified ID"}}}},"/subscribe/{userID}/{courseID}":{"post":{"tags":["subscriptions"],"summary":"Subscribe student to course","description":"This can be used to enrol an existing student (a user having the student role) in an existing course in the learning environment.","operationId":"subscribe","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/UserID"},{"$ref":"#/parameters/CourseID"},{"name":"reseller","in":"formData","type":"string","description":"the external ID of the reseller that should be linked to this enrolment; if not present, the reseller that is linked to the domain on which the API is called, is used, or otherwise the reseller that is marked as default reseller"},{"$ref":"#/parameters/UserCourseStartDate"},{"$ref":"#/parameters/UserCourseExpireDate"},{"name":"addToTeacherStudents","in":"formData","type":"string","enum":[true,false],"default":true,"description":"add the student to the 'My Students' list of all teachers of the course"},{"name":"notify","in":"formData","type":"string","enum":[true,false],"default":false,"description":"send an email to the student to notify him of the subscription"}],"responses":{"200":{"description":"success"},"404":{"description":"no user and/or course exists with the specified ID"},"409":{"description":"* The user is not active.\n* The user is not a student.\n* The course is expired, a template or not active.\n* The user is already enrolled in the course.\n* There are no sufficient licences"}}}},"/updateSubscription/{userID}/{courseID}":{"post":{"tags":["subscriptions"],"summary":"Update subscription","description":"This can be used to update an existing enrolment of a student in a course in the learning environment.","operationId":"updateSubscription","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/UserID"},{"$ref":"#/parameters/CourseID"},{"$ref":"#/parameters/UserCourseStartDate"},{"$ref":"#/parameters/UserCourseExpireDate"}],"responses":{"200":{"description":"success"},"404":{"description":"no user and/or course exists with the specified ID"},"409":{"description":"the specified user in not enroled in the specified course, or the start date is changed after the student has already started"}}}},"/unsubscribe/{userID}/{courseID}":{"post":{"tags":["subscriptions"],"summary":"Unsubscribe student from course","description":"This can be used to unenrol a student from in an existing course in the learning environment.","operationId":"unsubscribe","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/UserID"},{"$ref":"#/parameters/CourseID"},{"name":"ignoreMissing","in":"formData","type":"string","enum":[true,false],"default":false,"description":"do not give an error message if the user is not enroled in the course"}],"responses":{"200":{"description":"success"},"404":{"description":"no user and/or course exists with the specified ID"},"409":{"description":"the user is not enroled in the course (and <b>ignoreMissing</b> is <b>false</b>)"}}}},"/getResults/{userID}":{"get":{"tags":["subscriptions"],"summary":"Get course results for user","description":"This can be used to obtain the course results of the specified user. These results contain the general subscription information of the courses (active, start date, finished, expired, completed), the global results of the courses (progress, retention, efficiency, grade), the results of the (individual attempts of the) course activities (start date, completed, complete date, progress, score, passed) and the results of the learning objectives (value, target, knowledge intake).<br><br>'Finished' is the subscription state of the user. This is false for a new or active subscription and true for an expired or unsubscribed subscription.<br>'Completed' is true when the course completing activity has been completed.<br>'Progress' shows the progress over the activities that are currently available to the learner.<br>'Grade' contains the grade of the activity that has been selected at 'Base course grade on'.<br><br><b>NOTE:</b> The system also provides WebHook functionality that can push results as soon as they become available. This can be much more efficient than polling for results using this API function.","operationId":"getResults","parameters":[{"$ref":"#/parameters/UserID"},{"name":"asStudent","in":"formData","type":"string","enum":[true,false],"default":false,"description":"indicates if the results should contain only the results the user is allowed to see (meaning only the active course activities and those only if the settings of the activity allow it (“Feedback type”))"}],"produces":["application/json","application/xml"],"responses":{"200":{"description":"success","schema":{"properties":{"courses":{"type":"array","items":{"$ref":"#/definitions/CourseResult"},"xml":{"wrapped":true}}}}},"404":{"description":"no user exists with the specified ID, or the user is not subscribed to the course"}}}},"/getResults/{userID}/{courseID}":{"get":{"tags":["subscriptions"],"summary":"Get results for user course","description":"This can be used to obtain the course results of the specified user and course. These results contain the general subscription information of the course (active, start date, finished, expired, completed), the global results of the course (progress, retention, efficiency, grade), the results of the (individual attempts of the) course activities (start date, completed, complete date, progress, score, passed) and the results of the learning objectives (value, target, knowledge intake).<br><br>'Finished' is the subscription state of the user. This is false for a new or active subscription and true for an expired or unsubscribed subscription.<br>'Completed' is true when the course completing activity has been completed.<br>'Progress' shows the progress over the activities that are currently available to the learner.<br>'Grade' contains the grade of the activity that has been selected at 'Base course grade on'.<br><br><b>NOTE:</b> The system also provides WebHook functionality that can push results as soon as they become available. This can be much more efficient than polling for results using this API function.","operationId":"getCourseResults","parameters":[{"$ref":"#/parameters/UserID"},{"$ref":"#/parameters/CourseID"},{"name":"asStudent","in":"formData","type":"string","enum":[true,false],"default":false,"description":"indicates if the results should contain only the results the user is allowed to see (meaning only the active course activities and those only if the settings of the activity allow it (“Feedback type”))"}],"produces":["application/json","application/xml"],"responses":{"200":{"description":"success","schema":{"$ref":"#/definitions/CourseResult"}},"404":{"description":"no user and/or course exists with the specified ID, or the user is not subscribed to the course"}}}},"/getResults/{userID}/{courseID}/{activityID}":{"get":{"tags":["subscriptions"],"summary":"Get results for user course activity","description":"This can be used to obtain the results of the specified course activity for the specified user. These contain the results of the (individual attempts of the) course activity (start date, completed, complete date, progress, score, passed).<br><br><b>NOTE:</b> The system also provides WebHook functionality that can push results as soon as they become available. This can be much more efficient than polling for results using this API function.","operationId":"getActivityResults","parameters":[{"$ref":"#/parameters/UserID"},{"$ref":"#/parameters/CourseID"},{"$ref":"#/parameters/ActivityID"},{"name":"asStudent","in":"formData","type":"string","enum":[true,false],"default":false,"description":"indicates if the results should contain only the results the user is allowed to see (meaning only the active course activities and those only if the settings of the activity allow it (“Feedback type”))"}],"produces":["application/json","application/xml"],"responses":{"200":{"description":"success","schema":{"$ref":"#/definitions/PartResult"}},"404":{"description":"no user and/or course and/or activity exists with the specified ID, or the user is not subscribed to the course"}}}},"/scoreExternalActivity/{userID}/{courseID}/{activityID}":{"post":{"tags":["subscriptions"],"summary":"Score external activity","description":"This can be used to to score an external activity for a specific student.","operationId":"scoreExternalActivity","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/UserID"},{"$ref":"#/parameters/CourseID"},{"$ref":"#/parameters/ActivityID"},{"name":"score","in":"formData","type":"number","required":true,"description":"the score of the external activity for the specified student (with an optional decimal point)"}],"responses":{"200":{"description":"success"},"404":{"description":"if no user and/or course and/or activity exists with the specified ID, or the user is not subscribed to the course"}}}},"/groupExists/{ID}":{"get":{"tags":["groups"],"summary":"Check if group exists","description":"This can be used to check if a certain user group exists in the learning environment.","operationId":"groupExists","parameters":[{"$ref":"#/parameters/ID"}],"produces":["application/json","application/xml","text/plain"],"responses":{"200":{"$ref":"#/responses/Boolean"}}}},"/addGroup/{ID}":{"post":{"tags":["groups"],"summary":"Add group","description":"This can be used to add a new user group to the learning environment.","operationId":"addGroup","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/ID"},{"name":"type","in":"formData","type":"string","enum":["Student","Teacher","Mentor"],"required":true},{"name":"name","in":"formData","type":"string","required":true},{"$ref":"#/parameters/ParentID"}],"responses":{"200":{"description":"success"},"404":{"description":"no group exists with the specified parent ID"},"409":{"description":"a group already exists with the specified ID or the specified parent group is the group itself"}}}},"/updateGroup/{ID}":{"post":{"tags":["groups"],"summary":"Update group","description":"This can be used to update an existing group.","operationId":"updateGroup","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/ID"},{"name":"name","in":"formData","type":"string"},{"$ref":"#/parameters/ParentID"}],"responses":{"200":{"description":"success"},"404":{"description":"no group exists with the specified parent ID"},"409":{"description":"the specified parent group is the group itself"}}}},"/groupUserExists/{groupID}/{userID}":{"get":{"tags":["groups"],"summary":"Check if user is member of group","description":"This can be used to check if a certain user is a member of a certain group.","operationId":"groupUserExists","parameters":[{"$ref":"#/parameters/GroupID"},{"$ref":"#/parameters/UserID"}],"produces":["application/json","application/xml","text/plain"],"responses":{"200":{"$ref":"#/responses/Boolean"},"404":{"description":"no group and/or user exists with the specified ID"}}}},"/getGroupUsers/{groupID}":{"get":{"tags":["groups"],"summary":"Get members of group","description":"This can be used to obtain the members of the specified group.","operationId":"getGroupUsers","parameters":[{"$ref":"#/parameters/GroupID"}],"produces":["application/json","application/xml"],"responses":{"200":{"description":"success","schema":{"properties":{"users":{"type":"array","items":{"$ref":"#/definitions/UserCore"},"xml":{"wrapped":true}}}}},"404":{"description":"no group exists with the specified ID"}}}},"/addGroupUsers/{groupID}":{"post":{"tags":["groups"],"summary":"Add group users","description":"This can be used to add users to an existing user group.","operationId":"addGroupUsers","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/GroupID"},{"name":"user","in":"formData","type":"array","items":{"type":"string"},"collectionFormat":"multi","required":true,"description":"the external ID of the user, this parameter can occur multiple times"},{"name":"addToTeacherStudents","in":"formData","type":"string","enum":[true,false],"default":true,"description":"add the student(s) to the 'My Students' list of the teacher(s)"},{"name":"ignoreDuplicates","in":"formData","type":"string","enum":[true,false],"default":false,"description":"ignore users who are already in the group"}],"responses":{"200":{"description":"success"},"404":{"description":"no group exists with the specified ID"},"409":{"description":"a user does not have the correct role for the type of the group or a user is already in the group (and <b>ignoreDuplicates</b> is <b>false</b>)"}}}},"/deleteGroupUsers/{groupID}":{"post":{"tags":["groups"],"summary":"Delete group users","description":"This can be used to remove users from an existing user group.","operationId":"deleteGroupUsers","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/GroupID"},{"name":"user","in":"formData","type":"array","items":{"type":"string"},"collectionFormat":"multi","required":true,"description":"the external ID of the user, this parameter can occur multiple times"},{"name":"ignoreMissing","in":"formData","type":"string","enum":[true,false],"default":false,"description":"ignore users who do not exist or are not in the group"}],"responses":{"200":{"description":"success"},"404":{"description":"no group exists with the specified ID or a user does not exist with the specified ID (and <b>ignoreMissing</b> is <b>false</b>)"},"409":{"description":"a user is not in the group (and <b>ignoreMissing</b> is <b>false</b>)"}}}},"/deleteGroup/{ID}":{"post":{"tags":["groups"],"summary":"Delete group","description":"This can be used to remove an existing group ","operationId":"deleteGroup","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/ID"},{"name":"force","in":"formData","type":"string","enum":[true,false],"default":false,"description":"remove the group even if there are users present"}],"responses":{"200":{"description":"success"},"404":{"description":"no group exists with the specified ID"},"409":{"description":"the group is still in use (and <b>force</b> is <b>false</b>)"}}}},"/addResellerBookableEvents/{resellerID}":{"post":{"tags":["resellers"],"summary":"Add reseller events","description":"This can be used to add events to an existing reseller.","operationId":"addResellerBookableEvents","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/ResellerID"},{"name":"event","in":"formData","type":"array","items":{"type":"string"},"collectionFormat":"multi","required":true,"description":"the external ID of the event, this parameter can occur multiple times"},{"name":"ignoreDuplicates","in":"formData","type":"string","enum":[true,false],"default":false,"description":"ignore events that are already linked to the reseller"}],"responses":{"200":{"description":"success"},"404":{"description":"no reseller exists with the specified ID"},"409":{"description":"an event is already linked to the reseller (and <b>ignoreDuplicates</b> is <b>false</b>)"}}}},"/addResellerGroups/{resellerID}":{"post":{"tags":["resellers"],"summary":"Add reseller groups","description":"This can be used to add groups to an existing reseller.","operationId":"addResellerGroups","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/ResellerID"},{"name":"group","in":"formData","type":"array","items":{"type":"string"},"collectionFormat":"multi","required":true,"description":"the external ID of the group, this parameter can occur multiple times"},{"name":"ignoreDuplicates","in":"formData","type":"string","enum":[true,false],"default":false,"description":"ignore groups that are already linked to the reseller"}],"responses":{"200":{"description":"success"},"404":{"description":"no reseller exists with the specified ID"},"409":{"description":"a group is already linked to the reseller (and <b>ignoreDuplicates</b> is <b>false</b>)"}}}},"/addResellerTemplates/{resellerID}":{"post":{"tags":["resellers"],"summary":"Add reseller templates","description":"This can be used to add templates to an existing reseller.","operationId":"addResellerTemplates","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/ResellerID"},{"name":"template","in":"formData","type":"array","items":{"type":"string"},"collectionFormat":"multi","required":true,"description":"the external ID of the template, this parameter can occur multiple times"},{"name":"ignoreDuplicates","in":"formData","type":"string","enum":[true,false],"default":false,"description":"ignore templates that are already linked to the reseller"}],"responses":{"200":{"description":"success"},"404":{"description":"no reseller exists with the specified ID"},"409":{"description":"a template is already linked to the reseller (and <b>ignoreDuplicates</b> is <b>false</b>)"}}}},"/addResellerUsers/{resellerID}":{"post":{"tags":["resellers"],"summary":"Add reseller users","description":"This can be used to add users to an existing reseller.","operationId":"addResellerUsers","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/ResellerID"},{"name":"user","in":"formData","type":"array","items":{"type":"string"},"collectionFormat":"multi","required":true,"description":"the external ID of the user, this parameter can occur multiple times"},{"name":"ignoreDuplicates","in":"formData","type":"string","enum":[true,false],"default":false,"description":"ignore users who are already linked to the reseller"}],"responses":{"200":{"description":"success"},"404":{"description":"no reseller exists with the specified ID"},"409":{"description":"a user is already linked to the reseller (and <b>ignoreDuplicates</b> is <b>false</b>)"}}}},"/deleteResellerBookableEvents/{resellerID}":{"post":{"tags":["resellers"],"summary":"Remove events from a reseller","description":"This can be used to remove events from an existing reseller.","operationId":"deleteResellerBookableEvents","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/ResellerID"},{"name":"event","in":"formData","type":"array","items":{"type":"string"},"collectionFormat":"multi","required":true,"description":"the external ID of the event, this parameter can occur multiple times"},{"name":"ignoreMissing","in":"formData","type":"string","enum":[true,false],"default":false,"description":"ignore events that do not exist or are not linked to the reseller"}],"responses":{"200":{"description":"success"},"404":{"description":"no reseller exists with the specified ID or an event does not exist with the specified ID (and <b>ignoreMissing</b> is <b>false</b>)"},"409":{"description":"an event is not linked to the reseller (and <b>ignoreMissing</b> is <b>false</b>)"}}}},"/deleteResellerGroups/{resellerID}":{"post":{"tags":["resellers"],"summary":"Remove groups from a reseller","description":"This can be used to remove groups from an existing reseller.","operationId":"deleteResellerGroups","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/ResellerID"},{"name":"group","in":"formData","type":"array","items":{"type":"string"},"collectionFormat":"multi","required":true,"description":"the external ID of the group, this parameter can occur multiple times"},{"name":"ignoreMissing","in":"formData","type":"string","enum":[true,false],"default":false,"description":"ignore groups that do not exist or are not linked to the reseller"}],"responses":{"200":{"description":"success"},"404":{"description":"no reseller exists with the specified ID or a group does not exist with the specified ID (and <b>ignoreMissing</b> is <b>false</b>)"},"409":{"description":"a group is not linked to the reseller (and <b>ignoreMissing</b> is <b>false</b>)"}}}},"/deleteResellerTemplates/{resellerID}":{"post":{"tags":["resellers"],"summary":"Remove templates from a reseller","description":"This can be used to remove templates from an existing reseller.","operationId":"deleteResellerTemplates","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/ResellerID"},{"name":"template","in":"formData","type":"array","items":{"type":"string"},"collectionFormat":"multi","required":true,"description":"the external ID of the template, this parameter can occur multiple times"},{"name":"ignoreMissing","in":"formData","type":"string","enum":[true,false],"default":false,"description":"ignore templates that do not exist or are not linked to the reseller"}],"responses":{"200":{"description":"success"},"404":{"description":"no reseller exists with the specified ID or a template does not exist with the specified ID (and <b>ignoreMissing</b> is <b>false</b>)"},"409":{"description":"a template is not linked to the reseller (and <b>ignoreMissing</b> is <b>false</b>)"}}}},"/deleteResellerUsers/{resellerID}":{"post":{"tags":["resellers"],"summary":"Remove users from a reseller","description":"This can be used to remove users from an existing reseller.","operationId":"deleteResellerUsers","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/ResellerID"},{"name":"user","in":"formData","type":"array","items":{"type":"string"},"collectionFormat":"multi","required":true,"description":"the external ID of the user, this parameter can occur multiple times"},{"name":"ignoreMissing","in":"formData","type":"string","enum":[true,false],"default":false,"description":"ignore users who do not exist or are not linked to the reseller"}],"responses":{"200":{"description":"success"},"404":{"description":"no reseller exists with the specified ID or a user does not exist with the specified ID (and <b>ignoreMissing</b> is <b>false</b>)"},"409":{"description":"a user is not linked to the reseller (and <b>ignoreMissing</b> is <b>false</b>)"}}}},"/getTemplates":{"get":{"tags":["courses"],"summary":"Get templates","description":"This can be used to obtain all course templates that are published and have an external ID (i.e. all templates for which an instance can be created via the API).","operationId":"getTemplates","produces":["application/json","application/xml"],"responses":{"200":{"description":"success","schema":{"properties":{"templates":{"type":"array","items":{"$ref":"#/definitions/Template"},"xml":{"wrapped":true}}}}}}}},"/getCourses/{templateID}":{"get":{"tags":["courses"],"summary":"Get courses","description":"This can be used to obtain all course instances for a specific course templates that have an external ID (i.e. all instances that can be manipulated via the API).","operationId":"getCourses","parameters":[{"$ref":"#/parameters/TemplateID"}],"produces":["application/json","application/xml"],"responses":{"200":{"description":"success","schema":{"properties":{"courses":{"type":"array","items":{"$ref":"#/definitions/Course"},"xml":{"wrapped":true}}}}}}}},"/courseExists/{ID}":{"get":{"tags":["courses"],"summary":"Check if course exists","description":"This can be used to check if a certain course exists in the learning environment.","operationId":"courseExists","parameters":[{"$ref":"#/parameters/ID"}],"produces":["application/json","application/xml","text/plain"],"responses":{"200":{"$ref":"#/responses/Boolean"}}}},"/getCourse/{ID}":{"get":{"tags":["courses"],"summary":"Get course","description":"This can be used to obtain the details of the specified course (template). It is a subset of all available details.","operationId":"getCourse","parameters":[{"$ref":"#/parameters/ID"}],"produces":["application/json","application/xml"],"responses":{"200":{"description":"success","schema":{"$ref":"#/definitions/Course"}}}}},"/getStudentSubscriptions/{courseID}":{"get":{"tags":["courses"],"summary":"Get subscriptions for course","description":"This can be used to obtain the subscriptions of the specified course.","operationId":"getStudentSubscriptions","parameters":[{"$ref":"#/parameters/CourseID"},{"name":"skipStats","in":"formData","type":"string","enum":[true,false],"default":false,"description":"don't calculate statistics (progress, knowledgeIntake, efficiency, objectivesProgress) for performance"}],"produces":["application/json","application/xml"],"responses":{"200":{"description":"success","schema":{"properties":{"students":{"type":"array","items":{"$ref":"#/definitions/StudentSubscription"},"xml":{"wrapped":true}}}}},"404":{"description":"no course exists with the specified ID"}}}},"/getStudentTeachers/{userID}/{courseID}":{"get":{"tags":["courses"],"summary":"Get teachers for user in the context of a course","description":"This can be used to obtain the teachers of the specified user and course.","parameters":[{"$ref":"#/parameters/UserID"},{"$ref":"#/parameters/CourseID"}],"produces":["application/json","application/xml","text/plain"],"responses":{"200":{"description":"success","schema":{"properties":{"courses":{"type":"array","items":{"$ref":"#/definitions/UserCore"},"xml":{"wrapped":true}}}}},"404":{"description":"no user and/or course exists with the specified ID"}}}},"/getTeacherStudents/{userID}/{courseID}":{"get":{"tags":["courses"],"summary":"Get students for teacher in the context of a course","description":"This can be used to obtain the students of the specified teacher and course.","parameters":[{"$ref":"#/parameters/UserID"},{"$ref":"#/parameters/CourseID"}],"produces":["application/json","application/xml","text/plain"],"responses":{"200":{"description":"success","schema":{"properties":{"courses":{"type":"array","items":{"$ref":"#/definitions/UserCore"},"xml":{"wrapped":true}}}}},"404":{"description":"no user and/or course exists with the specified ID"}}}},"/instantiate/{templateID}/{courseID}":{"post":{"tags":["courses"],"summary":"Create course instance","description":"This can be used to create a new instance of an existing course template in the learning environment.","operationId":"instantiate","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/TemplateID"},{"$ref":"#/parameters/CourseID"},{"$ref":"#/parameters/Name"},{"$ref":"#/parameters/Title"},{"$ref":"#/parameters/Description"},{"name":"reseller","in":"formData","type":"string","description":"the external ID of the reseller that should be linked to this instance; if not present, the reseller that is linked to the domain on which the API is called, is used, or otherwise the reseller that is marked as default reseller"},{"name":"resellerName","in":"formData","type":"string","description":"**DEPRECATED** the name of the reseller that should be linked to this instance; if not present, the reseller that is linked to the domain on which the API is called, is used, or otherwise the reseller that is marked as default reseller"},{"name":"teacherGroup","in":"formData","type":"string","description":"the external ID of the teacher group that should be linked to this instance"},{"name":"mentorGroup","in":"formData","type":"string","description":"the external ID of the mentor group that should be linked to this instance"},{"name":"startDate","in":"formData","type":"string","format":"date","description":"<b>yyyy-MM-dd</b>, date from which the course is available to students"},{"name":"expireDate","in":"formData","type":"string","format":"date","description":"<b>yyyy-MM-dd</b>, date on which the course will expire for the students (mutually exclusive with <b>expireInterval</b>)"},{"name":"expireInterval","in":"formData","type":"string","description":"<b>1 year</b>/<b>3 months</b>/etc., period from the first use after which the course will expire for the students (mutually exclusive with <b>expireDate</b>)"}],"responses":{"200":{"description":"success"},"404":{"description":"no template, reseller, teacher group and/or mentor group exists with the specified ID/name"},"409":{"description":"the template is not a template or not published, the course ID or name already exists, or the group ID belongs to a group of the wrong type"}}}},"/updateCourse/{ID}":{"post":{"tags":["courses"],"summary":"Update course instance","description":"This can be used to update an existing course instance in the learning environment.","operationId":"updateCourse","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/ID"},{"$ref":"#/parameters/Name"},{"$ref":"#/parameters/Title"},{"$ref":"#/parameters/Description"},{"name":"teacherGroup","in":"formData","type":"string","description":"the external ID of the teacher group that should be linked to this instance; can only be specified if no teacher group has already been set for this course"},{"name":"mentorGroup","in":"formData","type":"string","description":"the external ID of the mentor group that should be linked to this instance; can only be specified if no mentor group has already been set for this course"},{"name":"startDate","in":"formData","type":"string","format":"date","description":"<b>yyyy-MM-dd</b>, date from which the course is available to students"},{"name":"expireDate","in":"formData","type":"string","format":"date","description":"<b>yyyy-MM-dd</b>, date on which the course will expire for the students (mutually exclusive with <b>expireInterval</b>)"},{"name":"expireInterval","in":"formData","type":"string","description":"<b>1 year</b>/<b>3 months</b>/etc., period from the first use after which the course will expire for the students (mutually exclusive with <b>expireDate</b>)"}],"responses":{"200":{"description":"success"},"404":{"description":"no course, teacher group and/or mentor group exists with the specified ID"},"409":{"description":"the course name already exists, the group ID belongs to a group of the wrong type, or a teacher or mentor group has already been set for the course"}}}},"/setCoursePermissions/{courseID}/{teacherID}":{"post":{"tags":["courses"],"summary":"Set course permissions","description":"This can be used to set the course permissions for a specific teacher.","operationId":"setCoursePermissions","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/CourseID"},{"$ref":"#/parameters/TeacherID"},{"name":"permission","in":"formData","type":"array","items":{"type":"string"},"enum":["CourseSettings","EditCalendar","EditTeacherStudents","ReceiveStudentMessage","ReceiveCoursePartNotification","AssessorPossible"],"collectionFormat":"multi","required":true,"description":"the name of the permission, this parameter can occur multiple times"},{"name":"unset","in":"formData","type":"string","enum":[true,false],"default":false,"description":"unset the specified permission(s) instead of set"}],"responses":{"200":{"description":"success"},"404":{"description":"no course and/or teacher and/or permission exists with the specified ID (or name in the case of permission)"}}}},"/setActivityPermissions/{courseID}/{activityID}/{teacherID}":{"post":{"tags":["courses"],"summary":"Set activity permissions","description":"This can be used to set the course activity permissions for a specific teacher.","operationId":"setActivityPermissions","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/CourseID"},{"$ref":"#/parameters/ActivityID"},{"$ref":"#/parameters/TeacherID"},{"name":"permission","in":"formData","type":"array","items":{"type":"string"},"enum":["Assess"],"collectionFormat":"multi","required":true,"description":"the name of the permission, this parameter can occur multiple times"},{"name":"unset","in":"formData","type":"string","enum":[true,false],"default":false,"description":"unset the specified permission(s) instead of set"}],"responses":{"200":{"description":"success"},"404":{"description":"no course and/or activity and/or teacher and/or permission exists with the specified ID (or name in the case of permission)"}}}},"/addTeacherStudents/{courseID}/{teacherID}":{"post":{"tags":["courses"],"summary":"Add teacher students","description":"This can be used to add students to the 'My Students' list of a teacher of a course.","operationId":"addTeacherStudents","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/CourseID"},{"$ref":"#/parameters/TeacherID"},{"name":"student","in":"formData","type":"array","items":{"type":"string"},"collectionFormat":"multi","required":true,"description":"the external ID of the student, this parameter can occur multiple times"},{"name":"ignoreDuplicates","in":"formData","type":"string","enum":[true,false],"default":false,"description":"ignore students who are already on the 'My Students' list of the specified teacher of the course"}],"responses":{"200":{"description":"success"},"404":{"description":"no teacher and/or course and/or student exists with the specified ID, or the student is not enroled in the specified course"},"409":{"description":"a student is already on the 'My Students' list of the teacher of the course (and <b>ignoreDuplicates</b> is <b>false</b>)"}}}},"/deleteTeacherStudents/{courseID}/{teacherID}":{"post":{"tags":["courses"],"summary":"Delete teacher students","description":"This can be used to remove students from the 'My Students' list of a teacher of a course.","operationId":"deleteStudentTeacher","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/CourseID"},{"$ref":"#/parameters/TeacherID"},{"name":"student","in":"formData","type":"array","items":{"type":"string"},"collectionFormat":"multi","required":true,"description":"the external ID of the student, this parameter can occur multiple times"},{"name":"ignoreMissing","in":"formData","type":"string","enum":[true,false],"default":false,"description":"ignore students who are not on the 'My Students' list of the specified teacher of the course"}],"responses":{"200":{"description":"success"},"404":{"description":"no teacher and/or course and/or student exists with the specified ID, or the student is not enroled in the specified course"},"409":{"description":"a student is not on the 'My Students' list of the teacher of the course (and <b>ignoreMissing</b> is <b>false</b>)"}}}},"/deleteCourse/{ID}":{"post":{"tags":["courses"],"summary":"Delete course","description":"This can be used to remove an existing course.","operationId":"deleteCourse","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/ID"},{"name":"force","in":"formData","type":"string","enum":[true,false],"default":false,"description":"remove the course even if there are active students present"}],"responses":{"200":{"description":"success"},"404":{"description":"no course exists with the specified ID"},"409":{"description":"the course is a template or there are still active students (and <b>force</b> is <b>false</b>)"}}}},"/copyTemplate/{templateID}/{ID}":{"post":{"tags":["courses"],"summary":"Copy template","description":"This can be used to copy an existing template.","operationId":"copyTemplate","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/TemplateID"},{"$ref":"#/parameters/ID"},{"$ref":"#/parameters/Name"},{"$ref":"#/parameters/Title"},{"$ref":"#/parameters/Description"},{"name":"copyContent","in":"formData","type":"string","enum":[true,false],"default":false,"description":"use the same content in the new template"},{"name":"publish","in":"formData","type":"string","enum":[true,false],"default":false,"description":"publish the new template"}],"responses":{"200":{"description":"success"},"404":{"description":"no course exists with the specified ID"},"409":{"description":"the course isn't a template, the new ID isn't unique or the new name isn't unique)"}}}},"/eventExists/{UID}":{"get":{"tags":["events"],"summary":"Check if event exists","description":"This can be used to check if a certain calendar item exists in the learning environment.","operationId":"eventExists","parameters":[{"$ref":"#/parameters/UID"}],"produces":["application/json","application/xml","text/plain"],"responses":{"200":{"$ref":"#/responses/Boolean"}}}},"/addEvent/{courseID}/{UID}":{"post":{"tags":["events"],"summary":"Add event","description":"This can be used to add a new calendar item to an existing course instance in the learning environment.","operationId":"addEvent","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/CourseID"},{"$ref":"#/parameters/UID"},{"name":"type","in":"formData","type":"string","enum":["Meeting","Exam"],"required":true},{"name":"start","in":"formData","type":"string","format":"date-time","required":true,"description":"<b>yyyy-MM-ddTHH:mm:ss</b>"},{"name":"end","in":"formData","type":"string","format":"date-time","required":true,"description":"<b>yyyy-MM-ddTHH:mm:ss</b>"},{"name":"summary","in":"formData","type":"string","required":true},{"$ref":"#/parameters/EventDescription"},{"$ref":"#/parameters/EventLocation"},{"$ref":"#/parameters/EventNotify"}],"responses":{"200":{"description":"success"},"404":{"description":"no course exists with the specified ID"},"409":{"description":"the course is a template, the type of the course does not allow calendar items, or the UID already exists"}}}},"/updateEvent/{UID}":{"post":{"tags":["events"],"summary":"Update event","description":"This can be used to update an existing calendar item.","operationId":"updateEvent","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/UID"},{"name":"start","in":"formData","type":"string","format":"date-time","description":"<b>yyyy-MM-ddTHH:mm:ss</b>"},{"name":"end","in":"formData","type":"string","format":"date-time","description":"<b>yyyy-MM-ddTHH:mm:ss</b>"},{"name":"summary","in":"formData","type":"string"},{"$ref":"#/parameters/EventDescription"},{"$ref":"#/parameters/EventLocation"},{"$ref":"#/parameters/EventNotify"}],"responses":{"200":{"description":"success"},"404":{"description":"no calendar item exists with the specified UID"}}}},"/deleteEvent/{UID}":{"post":{"tags":["events"],"summary":"Delete event","description":"This can be used to remove an existing calendar item.","operationId":"deleteEvent","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/UID"},{"$ref":"#/parameters/EventNotify"}],"responses":{"200":{"description":"success"},"404":{"description":"no calendar item exists with the specified UID"}}}},"/deleteCourseEvents/{courseID}":{"post":{"tags":["events"],"summary":"Delete course events","description":"This can be used to remove all events for a specific course. No notifications will be sent to the students of the course.","operationId":"deleteCourseEvents","parameters":[{"$ref":"#/parameters/CourseID"}],"responses":{"200":{"description":"success"}}}},"/accessCodeGroupExists/{ID}":{"get":{"tags":["accessCodes"],"summary":"Check if access code group exists","description":"This can be used to check if a certain access code group exists in the learning environment.","operationId":"accessCodeGroupExists","parameters":[{"$ref":"#/parameters/ID"}],"produces":["application/json","application/xml","text/plain"],"responses":{"200":{"$ref":"#/responses/Boolean"}}}},"/accessCodeExists/{groupID}/{userID}":{"get":{"tags":["accessCodes"],"summary":"Check if access code exists","description":"This can be used to check if an access code exists in an access code group for a specific user.","operationId":"accessCodeExists","parameters":[{"$ref":"#/parameters/AccessCodeGroupID"},{"$ref":"#/parameters/UserID"}],"produces":["application/json","application/xml","text/plain"],"responses":{"200":{"$ref":"#/responses/Boolean"}}}},"/addAccessCodeGroup/{ID}":{"post":{"tags":["accessCodes"],"summary":"Add access code group","description":"This can be used to add a new access code group to the learning environment.","operationId":"addAccessCodeGroup","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/ID"},{"name":"name","in":"formData","type":"string","required":true},{"name":"reseller","in":"formData","type":"string","description":"the external ID of the reseller that should be linked to the access code group; if not present, the reseller that is linked to the domain on which the API is called, is used, or otherwise the reseller that is marked as default reseller"},{"name":"course","in":"formData","type":"array","items":{"type":"string"},"collectionFormat":"multi","required":true,"description":"the external ID of the course the access code group should be linked to, this parameter can occur multiple times"}],"responses":{"200":{"description":"success"},"404":{"description":"no reseller exists with the specified ID"},"409":{"description":"an access code group already exists with the specified ID, or with the specified name for the specified reseller"}}}},"/createAccessCodes/{groupID}":{"post":{"tags":["accessCodes"],"summary":"Create access codes","description":"This can be used to create access codes in an existing access code group.","operationId":"createAccessCodes","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/GroupID"},{"name":"count","in":"formData","type":"integer","required":true,"description":"the number of access codes to create"}],"produces":["application/json","application/xml"],"responses":{"200":{"description":"success","schema":{"properties":{"accessCodes":{"type":"array","items":{"properties":{"code":{"type":"string","example":"RSDRW46DN9","xml":{"attribute":true}}}},"xml":{"wrapped":true}},"group":{"type":"string","xml":{"attribute":true}}}}},"404":{"description":"no access code group exists with the specified ID"}}}},"/addAccessCodes/{groupID}":{"post":{"tags":["accessCodes"],"summary":"Add access codes","description":"This can be used to add one or more (externally generated) access codes to an existing access code group.","operationId":"addAccessCodes","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/GroupID"},{"name":"code","in":"formData","type":"array","items":{"type":"string"},"collectionFormat":"multi","required":true,"description":"the access code to add, this parameter can occur multiple times"}],"responses":{"200":{"description":"success"},"404":{"description":"no access code group exists with the specified ID"},"409":{"description":"one of the access codes already exists in the specified access code group"}}}},"/addAccessCode/{groupID}/{userID}":{"post":{"tags":["accessCodes"],"summary":"Add a (user-assigned) access code","description":"This can be used to add a (externally generated) access code assigned to a specific user to an existing access code group.","operationId":"addAccessCode","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/GroupID"},{"$ref":"#/parameters/UserID"},{"name":"code","in":"formData","type":"string","required":true,"description":"the access code to add"}],"responses":{"200":{"description":"success"},"404":{"description":"no access code group exists with the specified ID"},"409":{"description":"the access code already exists in the specified access code group, an access code for the specified user already exists in the specified access code group or the specified user does not have the student role"}}}},"/deleteAccessCode/{code}":{"post":{"tags":["accessCodes"],"summary":"Delete access code","description":"This can be used to remove an existing access code.","operationId":"deleteAccessCode","parameters":[{"name":"code","in":"path","type":"string","required":true,"description":"the access code to remove"}],"responses":{"200":{"description":"success"},"404":{"description":"the specified access code does not exist"},"409":{"description":"there is an order for the specified access code"}}}},"/deleteAccessCodeGroup/{ID}":{"post":{"tags":["accessCodes"],"summary":"Delete access code group","description":"This can be used to remove an existing access code group (and all it's access codes).","operationId":"deleteAccessCodeGroup","parameters":[{"$ref":"#/parameters/ID"}],"responses":{"200":{"description":"success"},"404":{"description":"the specified access code group does not exist"},"409":{"description":"one or more products exist for the specified access code group or there is an order for one of the access codes in the specified access code group"}}}},"/addBookableEvent/{eventID}":{"post":{"tags":["bookableEvents"],"summary":"Add event","description":"This can be used to add a new event","operationId":"addBookableEvent","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/BookableEventID"},{"name":"name","in":"formData","type":"string","required":true},{"$ref":"#/parameters/BookableEventDescription"},{"$ref":"#/parameters/BookableEventLocation"},{"$ref":"#/parameters/BookableEventStart"},{"$ref":"#/parameters/BookableEventEnd"},{"$ref":"#/parameters/TimeZoneGroup"},{"$ref":"#/parameters/TimeZone"},{"$ref":"#/parameters/BookableEventScoring"},{"$ref":"#/parameters/Grading"},{"$ref":"#/parameters/Threshold"},{"$ref":"#/parameters/MinimumParticipants"},{"$ref":"#/parameters/MaximumParticipants"},{"$ref":"#/parameters/BookableEventStatus"},{"$ref":"#/parameters/EnrollmentPossible"}],"responses":{"200":{"description":"success"},"409":{"description":"An event with the specified ID already exists"}}}},"/updateBookableEvent/{eventID}":{"post":{"tags":["bookableEvents"],"summary":"Update event","description":"This can be used to update an existing event","operationId":"updateBookableEvent","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/BookableEventID"},{"name":"name","in":"formData","type":"string","required":true},{"$ref":"#/parameters/BookableEventDescription"},{"$ref":"#/parameters/BookableEventLocation"},{"$ref":"#/parameters/BookableEventStart"},{"$ref":"#/parameters/BookableEventEnd"},{"$ref":"#/parameters/TimeZoneGroup"},{"$ref":"#/parameters/TimeZone"},{"$ref":"#/parameters/BookableEventScoring"},{"$ref":"#/parameters/Grading"},{"$ref":"#/parameters/Threshold"},{"$ref":"#/parameters/MinimumParticipants"},{"$ref":"#/parameters/MaximumParticipants"},{"$ref":"#/parameters/BookableEventStatus"},{"$ref":"#/parameters/EnrollmentPossible"}],"responses":{"200":{"description":"success"},"404":{"description":"Specified event wasn't found"}}}},"/addOrUpdateBookableEvent/{ID}":{"post":{"tags":["bookableEvents"],"summary":"Add or update event","description":"This can be used to add or update an event, depending or whether the event already exists in the learning environment. The allowed parameters depend on whether the event is added or updated (see [addBookableEvent](#!/bookableEvents/addBookableEvent) and [updateBookableEvent](#!/bookableEvents/updateBookableEvent)).","operationId":"addOrUpdateBookableEvent","consumes":["application/x-www-form-urlencoded"],"responses":{"200":{"description":"success"}}}},"/addBookableEventTeachers/{eventID}":{"post":{"tags":["bookableEvents"],"summary":"Add event instructors","description":"This can be used to add instructors to an existing event.","operationId":"addBookableEventTeachers","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/BookableEventID"},{"name":"user","in":"formData","type":"array","items":{"type":"string"},"collectionFormat":"multi","required":true,"description":"the external ID of the user, this parameter can occur multiple times"},{"name":"ignoreDuplicates","in":"formData","type":"string","enum":[true,false],"default":false,"description":"ignore users who are already in the group"}],"responses":{"200":{"description":"success"},"404":{"description":"no event exists with the specified ID"},"409":{"description":"a user is not an instructor or a user is already in the event (and <b>ignoreDuplicates</b> is <b>false</b>)"}}}},"/deleteBookableEventTeachers/{eventID}":{"post":{"tags":["bookableEvents"],"summary":"Delete event instructors","description":"This can be used to remove instructors from an existing event.","operationId":"deleteBookableEventTeachers","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/BookableEventID"},{"name":"user","in":"formData","type":"array","items":{"type":"string"},"collectionFormat":"multi","required":true,"description":"the external ID of the user, this parameter can occur multiple times"},{"name":"ignoreMissing","in":"formData","type":"string","enum":[true,false],"default":false,"description":"ignore users who do not exist or are not in the group"}],"responses":{"200":{"description":"success"},"404":{"description":"no event exists with the specified ID or a user does not exist with the specified ID (and <b>ignoreMissing</b> is <b>false</b>)"},"409":{"description":"a user is not in the event (and <b>ignoreMissing</b> is <b>false</b>)"}}}},"/linkBookableEvent/{eventID}/{courseID}/{activityID}":{"post":{"tags":["bookableEvents"],"summary":"Link event to activity","description":"This can be used to link an existing event to an existing activity.","operationId":"linkBookableEvent","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/BookableEventID"},{"$ref":"#/parameters/CourseID"},{"$ref":"#/parameters/ActivityID"},{"name":"ignoreDuplicates","in":"formData","type":"string","enum":[true,false],"default":false,"description":"ignore events that are already linked to the activity"}],"responses":{"200":{"description":"success"},"404":{"description":"no event, course or activity exists with the specified ID"},"409":{"description":"an event is already linked to the activity (and <b>ignoreDuplicates</b> is <b>false</b>)"}}}},"/unlinkBookableEvent/{eventID}/{courseID}/{activityID}":{"post":{"tags":["bookableEvents"],"summary":"Unlink event from activity","description":"This can be used to unlink an event from an activity.","operationId":"unlinkBookableEvent","consumes":["application/x-www-form-urlencoded"],"parameters":[{"$ref":"#/parameters/BookableEventID"},{"$ref":"#/parameters/CourseID"},{"$ref":"#/parameters/ActivityID"},{"name":"ignoreMissing","in":"formData","type":"string","enum":[true,false],"default":false,"description":"ignore events that do not exist in the activity"}],"responses":{"200":{"description":"success"},"404":{"description":"no event, course or activity exists with the specified ID"},"409":{"description":"the event is not linked to the activity (and <b>ignoreMissing</b> is <b>false</b>)"}}}}},"parameters":{"ID":{"name":"ID","in":"path","type":"string","required":true,"description":"the ID in the external system, which is shown as <b>external ID</b> in the platform"},"UserID":{"name":"userID","in":"path","type":"string","required":true,"description":"the ID of the user in the external system, which is shown as <b>external ID</b> in the platform"},"TeacherID":{"name":"teacherID","in":"path","type":"string","required":true,"description":"the ID of the teacher in the external system, which is shown as <b>external ID</b> in the platform"},"BookableEventID":{"name":"eventID","in":"path","type":"string","required":true,"description":"the ID of the event in the external system, which is shown as <b>external ID</b> in the platform"},"CourseID":{"name":"courseID","in":"path","type":"string","required":true,"description":"the ID of the course in the external system, which is shown as <b>external ID</b> in the platform"},"ActivityID":{"name":"activityID","in":"path","type":"string","required":true,"description":"the ID of the activity in the external system, which is shown as <b>external ID</b> in the platform"},"NewID":{"name":"id","in":"formData","type":"string","description":"new (external) ID, must be unique"},"GroupID":{"name":"groupID","in":"path","type":"string","required":true,"description":"the ID of the group in the external system, which is shown as <b>external ID</b> in the platform"},"ParentID":{"name":"parent","in":"formData","type":"string","required":false,"description":"the ID of the parent group in the external system, which is shown as <b>external ID</b> in the platform"},"TemplateID":{"name":"templateID","in":"path","type":"string","required":true,"description":"the ID of the template in the external system, which is shown as <b>external ID</b> in the platform"},"Name":{"name":"name","in":"formData","type":"string","required":true,"description":"must be unique"},"Title":{"name":"title","in":"formData","type":"string","required":false},"Description":{"name":"description","in":"formData","type":"string"},"ResellerID":{"name":"resellerID","in":"path","type":"string","required":true,"description":"the ID of the reseller in the external system, which is shown as <b>external ID</b> in the platform"},"AccessCodeGroupID":{"name":"groupID","in":"path","type":"string","required":true,"description":"the ID of the access code group in the external system, which is shown as <b>external ID</b> in the platform"},"UID":{"name":"UID","in":"path","type":"string","required":true,"description":"the UID of the calendar item"},"Login":{"name":"login","in":"formData","type":"string","description":"must be unique (and must be an email address, unless users do not log in with their email addresses), also sets the email address if users log in with their email address (which is the default setting for a new environment, but it can be changed by our support desk (support@anewspring.com))"},"FirstName":{"name":"firstName","in":"formData","type":"string"},"MiddleName":{"name":"middleName","in":"formData","type":"string"},"LastName":{"name":"lastName","in":"formData","type":"string"},"Gender":{"name":"gender","in":"formData","type":"string","enum":["male","female"],"description":"<b>male</b>, <b>female</b>"},"UserTitle":{"name":"title","in":"formData","type":"string"},"Initials":{"name":"initials","in":"formData","type":"string"},"Email":{"name":"email","in":"formData","type":"string","description":"only applicable if users do not log in with their email address (can be set for an environment by our support desk (support@anewspring.com)"},"Function":{"name":"function","in":"formData","type":"string"},"Company":{"name":"company","in":"formData","type":"string"},"DateOfBirth":{"name":"dateOfBirth","in":"formData","type":"string","format":"date","description":"<b>yyyy-MM-dd</b>"},"TelephoneNumber":{"name":"telephoneNumber","in":"formData","type":"string"},"FaxNumber":{"name":"faxNumber","in":"formData","type":"string"},"CellPhoneNumber":{"name":"cellPhoneNumber","in":"formData","type":"string"},"Address":{"name":"address","in":"formData","type":"string"},"Zip":{"name":"zip","in":"formData","type":"string"},"Residence":{"name":"residence","in":"formData","type":"string"},"Country":{"name":"country","in":"formData","type":"string"},"InvoiceAddress":{"name":"invoiceAddress","in":"formData","type":"string"},"InvoiceZip":{"name":"invoiceZip","in":"formData","type":"string"},"InvoiceResidence":{"name":"invoiceResidence","in":"formData","type":"string"},"InvoiceCountry":{"name":"invoiceCountry","in":"formData","type":"string"},"Custom1":{"name":"custom1","in":"formData","type":"string"},"Custom2":{"name":"custom2","in":"formData","type":"string"},"Custom3":{"name":"custom3","in":"formData","type":"string"},"Custom4":{"name":"custom4","in":"formData","type":"string"},"Custom5":{"name":"custom5","in":"formData","type":"string"},"Locale":{"name":"locale","in":"formData","type":"string","enum":["nl","en","fr","it","es","sv","zh"],"description":"<b>nl</b>, <b>en</b>, <b>fr</b>, <b>it</b>, <b>es</b>, <b>sv</b>, <b>zh</b> (the default is the locale of the current reseller, this can be set by our support desk (support@anewspring.com))"},"TimeZoneGroup":{"name":"timeZoneGroup","in":"formData","type":"string","enum":["Etc/GMT+12","Etc/GMT+11","Pacific/Honolulu","America/Anchorage","America/Santa_Isabel","America/Los_Angeles","America/Phoenix","America/Chihuahua","America/Denver","America/Guatemala","America/Chicago","America/Mexico_City","America/Regina","America/Bogota","America/Cancun","America/New_York","America/Indianapolis","America/Caracas","America/Asuncion","America/Halifax","America/Cuiaba","America/La_Paz","America/St_Johns","America/Sao_Paulo","America/Cayenne","America/Buenos_Aires","America/Godthab","America/Montevideo","America/Bahia","America/Santiago","Etc/GMT+2","Atlantic/Azores","Atlantic/Cape_Verde","Africa/Casablanca","Etc/GMT","Europe/London","Atlantic/Reykjavik","Europe/Berlin","Europe/Budapest","Europe/Paris","Europe/Warsaw","Africa/Lagos","Africa/Windhoek","Asia/Amman","Europe/Bucharest","Asia/Beirut","Africa/Cairo","Asia/Damascus","Africa/Johannesburg","Europe/Kiev","Europe/Istanbul","Asia/Jerusalem","Europe/Kaliningrad","Africa/Tripoli","Asia/Baghdad","Asia/Riyadh","Europe/Minsk","Europe/Moscow","Africa/Nairobi","Asia/Tehran","Asia/Dubai","Asia/Baku","Europe/Samara","Indian/Mauritius","Asia/Tbilisi","Asia/Yerevan","Asia/Kabul","Asia/Tashkent","Asia/Yekaterinburg","Asia/Karachi","Asia/Calcutta","Asia/Colombo","Asia/Katmandu","Asia/Almaty","Asia/Dhaka","Asia/Novosibirsk","Asia/Rangoon","Asia/Bangkok","Asia/Krasnoyarsk","Asia/Shanghai","Asia/Irkutsk","Asia/Singapore","Australia/Perth","Asia/Taipei","Asia/Ulaanbaatar","Asia/Tokyo","Asia/Seoul","Asia/Yakutsk","Australia/Adelaide","Australia/Darwin","Australia/Brisbane","Australia/Sydney","Pacific/Port_Moresby","Australia/Hobart","Asia/Magadan","Asia/Vladivostok","Asia/Srednekolymsk","Pacific/Guadalcanal","Asia/Kamchatka","Pacific/Auckland","Etc/GMT-12","Pacific/Fiji","Pacific/Tongatapu","Pacific/Apia","Pacific/Kiritimati"],"description":"The time zone group for the user. If the environment is not time zone enabled this field will be ignored."},"TimeZone":{"name":"timeZone","in":"formData","type":"string","description":"The time zone for the user. If this is not one of the time zone group options, it will be converted to the matching one (eg: Europe/Amsterdam will be changed to Europe/Berlin). If the environment is not time zone enabled, this field will be ignored."},"Role":{"name":"role","in":"formData","type":"array","items":{"type":"string"},"collectionFormat":"multi","default":"student","enum":["student","teacher","mentor","author","designer","reseller","administrator","tenant"],"description":"<b>student</b>, <b>teacher</b>, <b>mentor</b>, <b>author</b>, <b>designer</b>, <b>reseller</b>, <b>administrator</b>, <b>tenant</b>"},"Password":{"name":"password","in":"formData","type":"string"},"GeneratePassword":{"name":"generatePassword","in":"formData","type":"string","enum":[true,false],"default":false,"description":"generate a random password (cannot be combined with password, implies notify=true)"},"ForcePasswordChange":{"name":"forcePasswordChange","in":"formData","type":"string","enum":[true,false],"default":false,"description":"force user to change password on next login (cannot be set without a password being set or generated)"},"Notify":{"name":"notify","in":"formData","type":"string","enum":[true,false],"default":false,"description":"send an email to the user with the login credentials (only possible if the user has a login, password and email address)"},"Active":{"name":"active","in":"formData","type":"string","enum":[true,false],"default":true},"Avatar":{"name":"avatar","in":"formData","type":"file","description":"profile picture (square), the content-type of the POST must be <b>multipart/form-data</b> for this (as for all file uploads)"},"DeleteAvatar":{"name":"deleteAvatar","in":"formData","type":"string","enum":[true,false],"default":false,"description":"delete the current profile picture"},"UserCourseStartDate":{"name":"startDate","in":"formData","type":"string","format":"date","description":"<b>yyyy-MM-dd</b>, first date the course is available for the student"},"UserCourseExpireDate":{"name":"expireDate","in":"formData","type":"string","format":"date","description":"<b>yyyy-MM-dd</b>, date on which the course expires for the student"},"EventDescription":{"name":"description","in":"formData","type":"string"},"EventLocation":{"name":"location","in":"formData","type":"string"},"EventNotify":{"name":"notify","in":"formData","type":"string","enum":[true,false],"default":false,"description":"send an email to the students to notify them of the change"},"BookableEventDescription":{"name":"description","in":"formData","type":"string"},"BookableEventLocation":{"name":"location","in":"formData","type":"string"},"BookableEventStart":{"name":"start","in":"formData","type":"string","format":"date-time","description":"<b>yyyy-MM-dd'T'HH:mm:ss</b>. Date must be equal to the end-date"},"BookableEventEnd":{"name":"end","in":"formData","type":"string","format":"date-time","description":"<b>yyyy-MM-dd'T'HH:mm:ss</b>. Date must be equal to the start-date"},"BookableEventScoring":{"name":"scoring","in":"formData","type":"string","enum":[true,false],"default":false,"description":"Enable grading options for the event"},"Grading":{"name":"grading","in":"formData","type":"string","enum":["Percentage","10Points","19Points","91Points"],"default":"Percentage","description":"Set the grading scale. Only applicable if scoring is enabled"},"Threshold":{"name":"threshold","in":"formData","type":"number"},"MinimumParticipants":{"name":"minimumParticipants","in":"formData","type":"integer"},"MaximumParticipants":{"name":"maximumParticipants","in":"formData","type":"integer"},"BookableEventStatus":{"name":"status","in":"formData","type":"string","enum":["Confirmed","Unconfirmed","Cancelled"],"default":"Unconfirmed"},"EnrollmentPossible":{"name":"enrollmentPossible","in":"formData","type":"string","enum":[true,false],"default":true}},"responses":{"Boolean":{"description":"success","schema":{"properties":{"result":{"type":"boolean","xml":{"name":"value"}}},"xml":{"name":"result"}}}},"definitions":{"User":{"properties":{"id":{"type":"string","xml":{"attribute":true}},"login":{"type":"string"},"email":{"type":"string"},"title":{"type":"string"},"firstName":{"type":"string"},"middleName":{"type":"string"},"lastName":{"type":"string"},"initials":{"type":"string"},"gender":{"type":"string","enum":["male","female"]},"company":{"type":"string"},"function":{"type":"string"},"dateOfBirth":{"type":"string","format":"date","example":"1970-01-01"},"telephoneNumber":{"type":"string"},"faxNumber":{"type":"string"},"cellPhoneNumber":{"type":"string"},"address":{"type":"string"},"zip":{"type":"string"},"residence":{"type":"string"},"country":{"type":"string"},"invoiceAddress":{"type":"string"},"invoiceZip":{"type":"string"},"invoiceResidence":{"type":"string"},"invoiceCountry":{"type":"string"},"custom1":{"type":"string"},"custom2":{"type":"string"},"custom3":{"type":"string"},"custom4":{"type":"string"},"custom5":{"type":"string"},"locale":{"type":"string","enum":["nl","en","fr","it","es"]},"timeZoneGroup":{"type":"string"},"active":{"type":"boolean"},"roles":{"type":"array","xml":{"name":"role"},"items":{"type":"string","enum":["student","teacher","mentor","author","designer","reseller","administrator","tenant"]}}},"xml":{"name":"user"}},"UserCore":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"login":{"type":"string"},"email":{"type":"string"},"active":{"type":"boolean"}},"xml":{"name":"user"}},"Subscription":{"properties":{"id":{"type":"string","xml":{"attribute":true}},"name":{"type":"string","xml":{"attribute":true}},"reseller":{"type":"string","xml":{"attribute":true}},"active":{"type":"boolean","xml":{"attribute":true}},"subscribeDate":{"type":"string","format":"date","example":"2013-04-05","xml":{"attribute":true}},"startDate":{"type":"string","format":"date","example":"2013-04-05","xml":{"attribute":true}},"finished":{"type":"boolean","xml":{"attribute":true}},"expired":{"type":"boolean","xml":{"attribute":true}},"progress":{"type":"string","example":"11/16","xml":{"attribute":true}},"knowledgeIntake":{"type":"number","example":0.4,"xml":{"attribute":true}},"efficiency":{"type":"number","example":0.27,"xml":{"attribute":true}},"objectiveProgress":{"type":"number","example":0.58,"xml":{"attribute":true}}},"xml":{"name":"course"}},"CourseResult":{"properties":{"id":{"type":"string","xml":{"attribute":true}},"name":{"type":"string","xml":{"attribute":true}},"reseller":{"type":"string","xml":{"attribute":true}},"active":{"type":"boolean","xml":{"attribute":true}},"subscribeDate":{"type":"string","format":"date","example":"2013-04-05","xml":{"attribute":true}},"startDate":{"type":"string","format":"date","example":"2013-04-05","xml":{"attribute":true}},"finished":{"type":"boolean","xml":{"attribute":true}},"expired":{"type":"boolean","xml":{"attribute":true}},"completed":{"type":"boolean","xml":{"attribute":true}},"completeDate":{"type":"string","format":"date","example":"2013-04-20","xml":{"attribute":true}},"progress":{"type":"string","example":"11/16","xml":{"attribute":true}},"knowledgeIntake":{"type":"number","example":0.4,"xml":{"attribute":true}},"efficiency":{"type":"number","example":0.27,"xml":{"attribute":true}},"objectiveProgress":{"type":"number","example":0.58,"xml":{"attribute":true}},"lastTrainingCompletedDate":{"type":"string","format":"date","example":"2014-07-02","xml":{"attribute":true}},"grade":{"type":"string","example":"84%","xml":{"attribute":true}},"passed":{"type":"boolean","xml":{"attribute":true}},"parts":{"type":"array","items":{"$ref":"#/definitions/PartResult"},"xml":{"wrapped":true}},"objectives":{"type":"array","items":{"$ref":"#/definitions/ObjectiveResult"},"xml":{"wrapped":true}}},"xml":{"name":"course"}},"PartResult":{"properties":{"id":{"type":"string","xml":{"attribute":true}},"name":{"type":"string","xml":{"attribute":true}},"type":{"type":"string","xml":{"attribute":true}},"blockName":{"type":"string","xml":{"attribute":true}},"completed":{"type":"boolean","xml":{"attribute":true}},"completeDate":{"type":"string","format":"date","example":"2013-04-20","xml":{"attribute":true}},"score":{"type":"string","xml":{"attribute":true}},"passed":{"type":"boolean","xml":{"attribute":true}},"attempts":{"type":"array","items":{"$ref":"#/definitions/Attempt"},"xml":{"name":"attempt"}}},"xml":{"name":"part"}},"Attempt":{"properties":{"attemptNumber":{"type":"integer","xml":{"attribute":true}},"startDate":{"type":"string","format":"date","example":"2013-04-05"},"completed":{"type":"boolean"},"completeDate":{"type":"string","format":"date","example":"2013-04-05"},"progress":{"type":"string","example":"2/2"},"score":{"type":"string","example":"10.0"},"passed":{"type":"boolean"},"terms":{"type":"array","items":{"$ref":"#/definitions/Term"},"xml":{"wrapped":true}},"criteria":{"type":"array","items":{"$ref":"#/definitions/Criterion"},"xml":{"wrapped":true}}},"xml":{"name":"part"}},"Term":{"properties":{"name":{"type":"string","xml":{"attribute":true}},"maxScore":{"type":"integer","example":3},"score":{"type":"integer","example":1},"threshold":{"type":"integer","example":2}},"xml":{"name":"term"}},"Criterion":{"properties":{"id":{"type":"string","xml":{"attribute":true}},"name":{"type":"string","xml":{"attribute":true}},"maxScore":{"type":"integer","example":3},"score":{"type":"integer","example":1}},"xml":{"name":"term"}},"ObjectiveResult":{"properties":{"name":{"type":"string","xml":{"attribute":true}},"value":{"type":"number","example":6},"target":{"type":"number","example":10},"knowledgeIntake":{"type":"number","example":0.65}},"xml":{"name":"term"}},"Template":{"properties":{"id":{"type":"string","xml":{"attribute":true}},"name":{"type":"string","xml":{"attribute":true}}},"xml":{"name":"template"}},"Course":{"properties":{"id":{"type":"string","xml":{"attribute":true}},"name":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"isTemplate":{"type":"boolean"},"active":{"type":"boolean"},"archived":{"type":"boolean"},"reseller":{"type":"string"},"type":{"type":"string","example":"Blended"},"accessType":{"type":"string","example":"Code"},"startDate":{"type":"string","format":"date","example":"2014-08-25"},"expireDate":{"type":"string","format":"date","example":"2015-08-25"},"expireInterval":{"type":"string","example":"1 year"},"teacherGroup":{"type":"string"},"mentorGroup":{"type":"string"}},"xml":{"name":"course"}},"StudentSubscription":{"properties":{"id":{"type":"string","xml":{"attribute":true}},"name":{"type":"string","xml":{"attribute":true}},"reseller":{"type":"string","xml":{"attribute":true}},"active":{"type":"boolean","xml":{"attribute":true}},"subscribeDate":{"type":"string","format":"date","example":"2013-04-05","xml":{"attribute":true}},"startDate":{"type":"string","format":"date","example":"2013-04-05","xml":{"attribute":true}},"finished":{"type":"boolean","xml":{"attribute":true}},"expired":{"type":"boolean","xml":{"attribute":true}},"progress":{"type":"string","example":"11/16","xml":{"attribute":true}},"knowledgeIntake":{"type":"number","example":0.4,"xml":{"attribute":true}},"efficiency":{"type":"number","example":0.27,"xml":{"attribute":true}},"objectiveProgress":{"type":"number","example":0.58,"xml":{"attribute":true}}},"xml":{"name":"student"}}}}