curl --request POST \
--url https://api.alpha-1edtech.ai/ims/oneroster/rostering/v1p2/classes/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"class": {
"title": "<string>",
"course": {
"sourcedId": "<string>"
},
"org": {
"sourcedId": "<string>"
},
"terms": [
{
"sourcedId": "<string>"
}
],
"sourcedId": "<string>",
"status": "active",
"metadata": {},
"classCode": "<string>",
"classType": "homeroom",
"location": "<string>",
"grades": [
"-1"
],
"subjects": [
"Reading"
],
"subjectCodes": [
"<string>"
],
"periods": [
"<string>"
],
"resources": [
{
"sourcedId": "<string>"
}
]
}
}
'{
"sourcedIdPairs": {
"suppliedSourcedId": "<string>",
"allocatedSourcedId": "<string>"
}
}To create a new Class. The responding system must return the set of sourcedIds that have been allocated to the newly created class record.
curl --request POST \
--url https://api.alpha-1edtech.ai/ims/oneroster/rostering/v1p2/classes/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"class": {
"title": "<string>",
"course": {
"sourcedId": "<string>"
},
"org": {
"sourcedId": "<string>"
},
"terms": [
{
"sourcedId": "<string>"
}
],
"sourcedId": "<string>",
"status": "active",
"metadata": {},
"classCode": "<string>",
"classType": "homeroom",
"location": "<string>",
"grades": [
"-1"
],
"subjects": [
"Reading"
],
"subjectCodes": [
"<string>"
],
"periods": [
"<string>"
],
"resources": [
{
"sourcedId": "<string>"
}
]
}
}
'{
"sourcedIdPairs": {
"suppliedSourcedId": "<string>",
"allocatedSourcedId": "<string>"
}
}