This route is used internally by the registration portal to create students. If you have your own custom registration system, you might find integrating with this endpoint helpful.
The endpoint takes a request body in the following shape:
{
email: String,
gender: String,
birthdate: Date,
name: {
first: String,
middle: String,
common: String,
last: String,
previous: String
},
home: {
city: String,
country: String,
province: String,
postal: String,
address: String
},
education: {
school: String,
grade: String,
iep: Boolean,
pen: String
},
ancestry: {
hasStatus: Boolean,
type: String,
band: String
},
contacts: [{
name: String,
phone: String,
email: String,
}],
phones: [String]
}
An example body might look like the following:
{
"name": {
"first": "Timothy",
"last": "Fitzsimmons",
"previous": ""
},
"home": {
"address": "1100 Mandan Road",
"city": "Victoria",
"province": "BC",
"country": "Canada",
"postal": "V8S 4N3"
},
"phones": [
"2505727938"
],
"ancestry": {},
"education": {
"grade": "11",
"school": ""
},
"enrolments": [
{
"course": {
"deleted": false,
"desc": "",
"fullname": "Science 10",
"id": "7d396156-cd17-4a0f-9ad5-0b3a0038f57a",
"isSyncFailing": false,
"lmsId": "33319",
"program": "DL-S",
"shortname": "SC-10",
"state": "open",
"teachers": [
{
"lmsId": "52155",
"name": "Andrew Wilson"
}
],
"type": "DL"
},
"state": "requested",
"notes": {},
"dates": {
"requested": "2023-06-20T00:42:38.953Z"
}
}
],
"contacts": [
{
"name": "test",
"email": "[email protected]"
}
],
"email": "[email protected]",
"birthdate": "2006-03-24T20:00:00.000Z",
"gender": "male"
}
GET /api/registration/courses