Users are usually created within the learn endpoint. The User service enables you to access the User entities directly.
Note: to access any learning-related information on a User, please use the Learner service. The Users service just manages basic creation and deleting of users.
The User object
Property
Description
guid
Internal Adaptemy id of the user
homepage
The URI of the identity provider
name
The user's unique identifier at this identity provider.
role
One of {student, teacher}. Learning is only modelled where role = student.
isenabled
true/false
registeredOn
Datetime of user creation on the Adaptemy system
deletedOn
Datetime of user deletion on the Adaptemy system
Note: the role of the User is the default role for this user. Within any classgroup, a User can take a role that differs from their default role e.g. a teacher can also join another classgroup as a student.
Get the list of all users in your organisation, or any single user that matches the filter criteria specified.
Query Parameters
Name
Type
Description
guid
string
Internal Adaptemy guid for this user
account
string
The URI (namespace/ID) of the user
Users
POSThttps://api.adaptemy.io/users
Create or update a user or or list of users.
Request Body
Name
Type
Description
user object
object
An array of valid User objects. See above.
Users
DELETEhttps://api.adaptemy.io/users
Deletes the User record. Note that any historic learning data is retained (as it was used to train the models) but this user's account is de-activated. All modelling of the learner will stop, and this account can no longer be accessed. Any new /learn events on this account will not succeed.
Query Parameters
Name
Type
Description
guid
string
Internal Adaptemy ID of this user
account
string
The URI (namespace/ID) of the user.
The Classgroup object
Classgroups are collections of users, both teachers and students, that are taking a course(s) together as a group. It is the core entity for group analytics and reporting.
In K-12 settings, a classgroup usually corresponds to the group of approx 25 students and their teacher, taking a course for a year. If, however, a teacher has a class of students taking different course (perhaps two levels age-groups or exam-levels), it may be the case that the 25 students are split between 2 classgroups. For Adaptemy, it is the unit of peer analysis rather than the physical grouping.
A classgroup can have multiple teachers, and a teacher or student can be in multiple classgroups.
If a classgroup definition can include users that have not yet been registered with Adaptemy: in this case they will be created as part of the classgroup call. This can be a more efficient alternative to using the POST Users call.
Property
Description
id
Client's classgroup identifier
students
Array of user objects with role of student in this classgroup.
teachers
Array of user objects with role of teacher in this classgroup
extensions
An custom configured properties of the classgroup.
Sample Classgroups object
Classgroups
GEThttps://api.adaptemy.io/classgroups
Returns all classgroups in your organisation, or filtered by any query parameters.
Query Parameters
Name
Type
Description
id
string
Classgroup id
Classgroups
POSThttps://api.adaptemy.io/classgroups
Create or update an array of classgroups. If the classgroup ID does not exist, a new classgroup is created. If the classgroup ID exists, the classgroup is overwritten with the new data; so can include removing students/teachers from the classgroup.
Request Body
Name
Type
Description
Array of classgroup objects
array
See definition above.
The following endpoints also allow students and teachers to be added/removed from existing classgroups: