API Reference
Enroll a student in a class
Add a student to the class roster.
Authorization
BearerAuth AuthorizationBearer <token>
Obtain your API key from the developer dashboard at https://dashboard.educare.com
In: header
Path Parameters
id*integer
Request Body
application/json
student_id*integer
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.educare.com/v1/classes/0/enroll" \ -H "Content-Type: application/json" \ -d '{ "student_id": 1234 }'{
"message": "Student successfully enrolled",
"class_id": 890,
"student_id": 1234,
"enrolled_at": "2025-12-31T10:30:00Z"
}{
"error": "Validation failed: email is required",
"code": "VALIDATION_ERROR",
"status": 400
}{
"error": "Invalid API key",
"code": "UNAUTHORIZED",
"status": 401
}{
"error": "Student not found",
"code": "NOT_FOUND",
"status": 404
}