POST
/v1/students/
curl \
--request POST 'https://classmanager.test/v1/students/' \
--header "Content-Type: application/json" \
--data '{"familyId":"fml_xxxxxxxxxxxxx","firstname":"John","lastname":"Doe","gender":"male","dateOfBirth":"2010-12-05","joinedAt":"2022-05-06","mediaConsent":true,"medicalInfo":"Allergies"}'
Request examples
{
"familyId": "fml_xxxxxxxxxxxxx",
"firstname": "John",
"lastname": "Doe",
"gender": "male",
"dateOfBirth": "2010-12-05",
"joinedAt": "2022-05-06",
"mediaConsent": true,
"medicalInfo": "Allergies"
}
Response examples (200)
{
"id": "stn_123123123123",
"companyId": "co_123123123123",
"familyId": "fml_123123123123",
"firstname": "John",
"lastname": "Doe",
"gender": "male",
"dateOfBirth": "2010-12-05",
"mediaConsent": "Not enabled",
"medicalInfo": "Medical Info",
"profilePicture": "https://",
"discountable": "1",
"joinedAt": "2023-10-05",
"deletedAt": "2023-12-05 14:30:41",
"archivedAt": "2023-12-05 14:30:41",
"createdAt": "2023-12-05 14:30:41"
}
Response examples (403)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}
Response examples (422)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}