curl --request GET \
--url https://api.alpha-1edtech.ai/edubridge/enrollments/defaultClass/{courseId}/{schoolId} \
--header 'Authorization: Bearer <token>'{
"data": {
"id": "123",
"title": "<string>",
"classCode": "<string>",
"subjectCodes": [
"<string>"
],
"subjects": [
"Reading"
],
"grades": [
"3"
],
"periods": [
"<string>"
],
"course": {
"id": "<string>",
"title": "<string>",
"metadata": {},
"subjects": [
"<string>"
],
"grades": [
"<string>"
],
"primaryApp": {
"id": "<string>",
"name": "<string>",
"domains": [
"<string>"
]
}
}
}
}Retrieves and automatically creates a default class (and other necessary academic entities) for the specified course.
This endpoint simplifies the management of digital learning by abstracting away the need to manually create class structures.
For digital-only courses, this endpoint ensures that the necessary academic structure (school year, term, class) exists without requiring the consumer to understand or manage this complex hierarchy. The class is created with appropriate digital-friendly settings.
You do not need to call this endpoint unless you have a use case where you want to manage the underlying academic structure (school year, term, class) for a course.
curl --request GET \
--url https://api.alpha-1edtech.ai/edubridge/enrollments/defaultClass/{courseId}/{schoolId} \
--header 'Authorization: Bearer <token>'{
"data": {
"id": "123",
"title": "<string>",
"classCode": "<string>",
"subjectCodes": [
"<string>"
],
"subjects": [
"Reading"
],
"grades": [
"3"
],
"periods": [
"<string>"
],
"course": {
"id": "<string>",
"title": "<string>",
"metadata": {},
"subjects": [
"<string>"
],
"grades": [
"<string>"
],
"primaryApp": {
"id": "<string>",
"name": "<string>",
"domains": [
"<string>"
]
}
}
}
}The access token received from the authorization server in the OAuth 2.0 flow.
The unique identifier for the course
The unique identifier for the school
Successful response
Show child attributes