curl --request POST \
--url https://api.alpha-1edtech.ai/ims/oneroster/rostering/v1p2/enrollments/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enrollment": {
"role": "administrator",
"user": {
"sourcedId": "<string>"
},
"class": {
"sourcedId": "<string>"
},
"sourcedId": "<string>",
"status": "active",
"metadata": {
"goals": {
"dailyXp": 123,
"dailyLessons": 123,
"dailyActiveMinutes": 123,
"dailyAccuracy": 123,
"dailyMasteredUnits": 123
},
"metrics": {
"totalXp": 123,
"totalLessons": 123,
"totalGrades": 123,
"courseType": "<string>",
"isSupplemental": true
}
},
"primary": "false",
"beginDate": "2024-01-01",
"endDate": "2024-01-01",
"school": {
"sourcedId": "<string>"
}
}
}
'{
"sourcedIdPairs": {
"suppliedSourcedId": "<string>",
"allocatedSourcedId": "<string>"
}
}To create a new Enrollment. The responding system must return the set of sourcedIds that have been allocated to the newly created enrollment record.
curl --request POST \
--url https://api.alpha-1edtech.ai/ims/oneroster/rostering/v1p2/enrollments/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enrollment": {
"role": "administrator",
"user": {
"sourcedId": "<string>"
},
"class": {
"sourcedId": "<string>"
},
"sourcedId": "<string>",
"status": "active",
"metadata": {
"goals": {
"dailyXp": 123,
"dailyLessons": 123,
"dailyActiveMinutes": 123,
"dailyAccuracy": 123,
"dailyMasteredUnits": 123
},
"metrics": {
"totalXp": 123,
"totalLessons": 123,
"totalGrades": 123,
"courseType": "<string>",
"isSupplemental": true
}
},
"primary": "false",
"beginDate": "2024-01-01",
"endDate": "2024-01-01",
"school": {
"sourcedId": "<string>"
}
}
}
'{
"sourcedIdPairs": {
"suppliedSourcedId": "<string>",
"allocatedSourcedId": "<string>"
}
}