Skip to content

Unenroll Students from a Class

Endpoint used to indicate a class and send one or more student objects to remove them from the class in Toolzz LMS.

Terminal window
curl --request POST \
--url 'https://kong.api.toolzz.com.br/api/classes/{class_id}/detach' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"users": [
{
"name": "Student Name",
"email": "student@example.com"
}
]
}'
{
"success": true,
"message": "Students unenrolled successfully"
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
class_idstringIdentifier of the class from which the student(s) will be unenrolled.Yes
ParameterTypeDescriptionRequired
usersarrayList of users to be removed from the class. Alternatively, a list with the emails of already registered students on the platform.Yes
users.namestringName of the student to be removed.Yes
users.emailstringEmail address of the student to be removed.Yes
idstringIdentifier of the student to be removed from the class.No
institution_codestringSubdomain of the desired institution.No

To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request. Additionally, the API is protected by other security measures to safeguard user data.