curl --request PUT \
--url https://api.alpha-1edtech.ai/ims/oneroster/rostering/v1p2/enrollments/{sourcedId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enrollment": {
"role": "administrator",
"user": {
"sourcedId": "<string>"
},
"class": {
"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>"
}
}
}
'{}To update an existing Enrollment. The sourcedId for the record to be updated is supplied by the requesting system.
curl --request PUT \
--url https://api.alpha-1edtech.ai/ims/oneroster/rostering/v1p2/enrollments/{sourcedId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enrollment": {
"role": "administrator",
"user": {
"sourcedId": "<string>"
},
"class": {
"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>"
}
}
}
'{}The access token received from the authorization server in the OAuth 2.0 flow.
The unique identifier for the enrollment to update
Show child attributes
Successfully updated
The response is of type object.