curl --request POST \
--url https://api.alpha-1edtech.ai/ims/oneroster/rostering/v1p2/academicSessions/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"academicSession": {
"sourcedId": "<string>",
"status": "active",
"title": "<string>",
"startDate": "<string>",
"endDate": "<string>",
"type": "gradingPeriod",
"schoolYear": "<string>",
"org": {
"sourcedId": "<string>"
},
"dateLastModified": "2023-11-07T05:31:56Z",
"metadata": {},
"parent": {
"sourcedId": "<string>"
},
"children": [
{
"href": "<string>",
"sourcedId": "<string>",
"type": "academicSession"
}
]
}
}
'{
"sourcedIdPairs": {
"suppliedSourcedId": "<string>",
"allocatedSourcedId": "<string>"
}
}To create a new academic session. The responding system must return the set of sourcedIds that have been allocated to the newly created academicSession record.
curl --request POST \
--url https://api.alpha-1edtech.ai/ims/oneroster/rostering/v1p2/academicSessions/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"academicSession": {
"sourcedId": "<string>",
"status": "active",
"title": "<string>",
"startDate": "<string>",
"endDate": "<string>",
"type": "gradingPeriod",
"schoolYear": "<string>",
"org": {
"sourcedId": "<string>"
},
"dateLastModified": "2023-11-07T05:31:56Z",
"metadata": {},
"parent": {
"sourcedId": "<string>"
},
"children": [
{
"href": "<string>",
"sourcedId": "<string>",
"type": "academicSession"
}
]
}
}
'{
"sourcedIdPairs": {
"suppliedSourcedId": "<string>",
"allocatedSourcedId": "<string>"
}
}