-
Notifications
You must be signed in to change notification settings - Fork 1
Admin EditStudent
Vaishakh GK edited this page Apr 26, 2023
·
2 revisions
Route for editing an existing student.
URL : /api/admin/edit-student?studentId=[student ID]
Method : PUT
Auth Required : YES
Data constraints
{
"admissionDate": "date of admission",
"applicationNo": "application number in central admission registry", // This should be an integer
"name": "name of student",
"aadhaarNo": "aadhaar number of student",
"phone": "phone number of student/parent", // This should be an integer
"gender": "gender of student",
"nameOfParent": "name of parent / guardian",
"occupationOfParent": "occupation of parent / guardian",
"relationshipWithGuardian": "Relationship of the student to the guardian",
"religion": "religion of student",
"caste": "caste of student",
"category": "category of student",
"dob": "date of birth of student",
"class": "class of student", // This should be an integer
"course": "student course",
"secondLanguage": "second language of student",
"status": "status of admission ",
"qualifyingExamDetails": {
"nameOfBoard": "board name of qualifying exam",
"registerNo": "register number of qualifying exam", // This should be an integer
"passsingTime": "month and year of passing"
},
"tcDetailsOnAdmission": {
"number": "tc number",
"date": "tc issued date",
"school": "tc issued school"
}
}
Data example
{
"admissionDate": "21-04-2023",
"applicationNo": 1,
"name": "Amit Kumar",
"aadhaarNo": "1234 5678 9012",
"phone": 9876543210,
"gender": "Male",
"nameOfParent": "Rajesh Kumar",
"occupationOfParent": "Businessman",
"relationshipWithGuardian": "Father",
"religion": "Hindu",
"caste": "Nair",
"category": "General",
"dob": "15-05-2005",
"class": 11,
"course": "PCMB",
"secondLanguage": "Hindi",
"status": "permanent",
"qualifyingExamDetails": {
"nameOfBoard": "CBSE",
"registerNo": 3456,
"passingTime": "March-2023"
},
"tcDetailsOnAdmission": {
"number": "TC-2023-XYZ",
"date": "20-04-2023",
"school": "ABC High School"
}
}Code : 200 OK
Content example
"Updated Successfully"Note : If the student being updated does not have an admission number yet and the status is set to 'permanent', a new admission number will be generated and assigned to the student on the server.
Code : 401 Unauthorized
Content :
"Not Logged In"Code : 500 Internal Server Error
Content :
"Request failed"