POST api/Student/register
Request Information
URI Parameters
None.
Body Parameters
StudentParentClassViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| parent | parentModel |
None. |
|
| student | studentModel |
None. |
|
| Studentclass | ClassesModel |
None. |
|
| Type | type |
None. |
Request Formats
application/json, text/json
Sample:
{
"parent": {
"id": 1,
"name": "sample string 2",
"cnic": "sample string 3",
"father_phone": "sample string 4",
"mother_phone": "sample string 5",
"home_Phone": "sample string 6",
"emergency_phone": "sample string 7",
"occupation": "sample string 8",
"email": "sample string 9",
"addedon": "2026-06-22T02:25:56.1701631-07:00"
},
"student": {
"id": 1,
"name": "sample string 1",
"dateOfBirth": "2026-06-22T02:25:56.1701631-07:00",
"placeOfBirth": "sample string 3",
"language": "sample string 4",
"relegious": "sample string 5",
"nationality": "sample string 6",
"gender": "sample string 7",
"medicalCondition": "sample string 8",
"parentId": 9,
"recordInsetedTeacherId": 10,
"address": "sample string 11",
"admissionClassId": 12,
"sectionId": 13,
"name_of_last_school": "sample string 14",
"admission_test_marks": 15.1,
"className": "sample string 16",
"section": "sample string 17",
"remarks": "sample string 18",
"profile_Image": "sample string 19",
"mobile_No": "sample string 20",
"current_School_College_for_Coaching": "sample string 21",
"date_Of_joining": "2026-06-22T02:25:56.1701631-07:00",
"admission_fee": 1,
"monthly_fee": 1,
"addedOn": "2026-06-22T02:25:56.1701631-07:00",
"typeId": 23,
"imageFile": null,
"fatherPhone": "sample string 24",
"fatherName": "sample string 25",
"records": {
"totalRecordsCount": 1,
"fetchedRecordsCount": 2
},
"attandanceStatusDTO": {
"isPresent": true,
"isAbsent": true,
"isLeave": true
}
},
"studentclass": {
"id": 1,
"name": "sample string 2"
},
"type": {
"id": 1,
"name": "sample string 2"
}
}
application/xml, text/xml
Sample:
<StudentParentClassViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLL.ViewModel">
<Studentclass xmlns:d2p1="http://schemas.datacontract.org/2004/07/BLL.Models">
<d2p1:id>1</d2p1:id>
<d2p1:name>sample string 2</d2p1:name>
</Studentclass>
<Type xmlns:d2p1="http://schemas.datacontract.org/2004/07/BLL.Models">
<d2p1:id>1</d2p1:id>
<d2p1:name>sample string 2</d2p1:name>
</Type>
<parent xmlns:d2p1="http://schemas.datacontract.org/2004/07/BLL.Models">
<d2p1:CNIC>sample string 3</d2p1:CNIC>
<d2p1:Father_phone>sample string 4</d2p1:Father_phone>
<d2p1:Home_Phone>sample string 6</d2p1:Home_Phone>
<d2p1:Mother_phone>sample string 5</d2p1:Mother_phone>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:Occupation>sample string 8</d2p1:Occupation>
<d2p1:addedon>2026-06-22T02:25:56.1701631-07:00</d2p1:addedon>
<d2p1:email>sample string 9</d2p1:email>
<d2p1:emergency_phone>sample string 7</d2p1:emergency_phone>
<d2p1:id>1</d2p1:id>
</parent>
<student xmlns:d2p1="http://schemas.datacontract.org/2004/07/BLL.Models">
<d2p1:Admission_fee>1</d2p1:Admission_fee>
<d2p1:Admission_test_marks>15.1</d2p1:Admission_test_marks>
<d2p1:Current_School_College_for_Coaching>sample string 21</d2p1:Current_School_College_for_Coaching>
<d2p1:DateOfBirth>2026-06-22T02:25:56.1701631-07:00</d2p1:DateOfBirth>
<d2p1:Date_Of_joining>2026-06-22T02:25:56.1701631-07:00</d2p1:Date_Of_joining>
<d2p1:FatherName>sample string 25</d2p1:FatherName>
<d2p1:FatherPhone>sample string 24</d2p1:FatherPhone>
<d2p1:Gender>sample string 7</d2p1:Gender>
<d2p1:ImageFile xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" />
<d2p1:Language>sample string 4</d2p1:Language>
<d2p1:Mobile_No>sample string 20</d2p1:Mobile_No>
<d2p1:Monthly_fee>1</d2p1:Monthly_fee>
<d2p1:Name>sample string 1</d2p1:Name>
<d2p1:Name_of_last_school>sample string 14</d2p1:Name_of_last_school>
<d2p1:Nationality>sample string 6</d2p1:Nationality>
<d2p1:PlaceOfBirth>sample string 3</d2p1:PlaceOfBirth>
<d2p1:Profile_Image>sample string 19</d2p1:Profile_Image>
<d2p1:Relegious>sample string 5</d2p1:Relegious>
<d2p1:Remarks>sample string 18</d2p1:Remarks>
<d2p1:addedOn>2026-06-22T02:25:56.1701631-07:00</d2p1:addedOn>
<d2p1:address>sample string 11</d2p1:address>
<d2p1:admissionClassId>12</d2p1:admissionClassId>
<d2p1:attandanceStatusDTO xmlns:d3p1="http://schemas.datacontract.org/2004/07/Models.DTO">
<d3p1:IsAbsent>true</d3p1:IsAbsent>
<d3p1:IsLeave>true</d3p1:IsLeave>
<d3p1:IsPresent>true</d3p1:IsPresent>
</d2p1:attandanceStatusDTO>
<d2p1:className>sample string 16</d2p1:className>
<d2p1:id>1</d2p1:id>
<d2p1:medicalCondition>sample string 8</d2p1:medicalCondition>
<d2p1:parentId>9</d2p1:parentId>
<d2p1:recordInsetedTeacherId>10</d2p1:recordInsetedTeacherId>
<d2p1:records>
<d2p1:fetchedRecordsCount>2</d2p1:fetchedRecordsCount>
<d2p1:totalRecordsCount>1</d2p1:totalRecordsCount>
</d2p1:records>
<d2p1:section>sample string 17</d2p1:section>
<d2p1:sectionId>13</d2p1:sectionId>
<d2p1:typeId>23</d2p1:typeId>
</student>
</StudentParentClassViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
APIResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | string |
None. |
|
| StatusCode | integer |
None. |
|
| Message | string |
None. |
|
| ResponseException | ApiError |
None. |
|
| Result | Object |
None. |
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.