POST api/Student/PostStudent
Creates a new student
Request Information
URI Parameters
None.
Body Parameters
Student Object with franchiseId
BO.Models.Students.StudentBasicName | Description | Type | Additional information |
---|---|---|---|
StudentId | integer |
None. |
|
FirstName | string |
Required |
|
LastName | string |
Required |
|
Suburb | string |
Required |
|
StateId | integer |
Required |
|
Postcode | string |
Required |
|
Address | string |
Required |
|
PhoneNumber | string |
None. |
|
MobileNumber | string |
None. |
|
Birthday | date |
Required |
|
Female | boolean |
Required |
|
string |
Required |
||
EmergencyName | string |
Required |
|
EmergencyPhoneNumber | string |
Required |
|
Comment | string |
None. |
|
Newsletter | boolean |
None. |
|
FranchiseeId | integer |
Required |
|
StudentMarketings | Collection of BO.Models.Students.StudentMarketing |
None. |
Request Formats
application/json, text/json
Sample:
{ "StudentId": 1, "FirstName": "sample string 2", "LastName": "sample string 3", "Suburb": "sample string 4", "StateId": 5, "Postcode": "sample string 6", "Address": "sample string 7", "PhoneNumber": "sample string 8", "MobileNumber": "sample string 9", "Birthday": "2024-11-07T10:45:43.8336151+08:00", "Female": true, "Email": "sample string 11", "EmergencyName": "sample string 12", "EmergencyPhoneNumber": "sample string 13", "Comment": "sample string 14", "Newsletter": true, "FranchiseeId": 16, "StudentMarketings": { "$id": "2", "$values": [ { "$id": "3" }, { "$ref": "3" } ] } }
application/xml, text/xml
Sample:
<StudentBasic xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BO.Models.Students"> <Address>sample string 7</Address> <Birthday>2024-11-07T10:45:43.8336151+08:00</Birthday> <Comment>sample string 14</Comment> <Email>sample string 11</Email> <EmergencyName>sample string 12</EmergencyName> <EmergencyPhoneNumber>sample string 13</EmergencyPhoneNumber> <Female>true</Female> <FirstName>sample string 2</FirstName> <FranchiseeId>16</FranchiseeId> <LastName>sample string 3</LastName> <MobileNumber>sample string 9</MobileNumber> <Newsletter>true</Newsletter> <PhoneNumber>sample string 8</PhoneNumber> <Postcode>sample string 6</Postcode> <StateId>5</StateId> <StudentId>1</StudentId> <StudentMarketings> <StudentMarketing /> <StudentMarketing /> </StudentMarketings> <Suburb>sample string 4</Suburb> </StudentBasic>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Student Object
BO.Models.Students.StudentBasicName | Description | Type | Additional information |
---|---|---|---|
StudentId | integer |
None. |
|
FirstName | string |
Required |
|
LastName | string |
Required |
|
Suburb | string |
Required |
|
StateId | integer |
Required |
|
Postcode | string |
Required |
|
Address | string |
Required |
|
PhoneNumber | string |
None. |
|
MobileNumber | string |
None. |
|
Birthday | date |
Required |
|
Female | boolean |
Required |
|
string |
Required |
||
EmergencyName | string |
Required |
|
EmergencyPhoneNumber | string |
Required |
|
Comment | string |
None. |
|
Newsletter | boolean |
None. |
|
FranchiseeId | integer |
Required |
|
StudentMarketings | Collection of BO.Models.Students.StudentMarketing |
None. |
Response Formats
application/json, text/json
Sample:
{ "StudentId": 1, "FirstName": "sample string 2", "LastName": "sample string 3", "Suburb": "sample string 4", "StateId": 5, "Postcode": "sample string 6", "Address": "sample string 7", "PhoneNumber": "sample string 8", "MobileNumber": "sample string 9", "Birthday": "2024-11-07T10:45:43.8336151+08:00", "Female": true, "Email": "sample string 11", "EmergencyName": "sample string 12", "EmergencyPhoneNumber": "sample string 13", "Comment": "sample string 14", "Newsletter": true, "FranchiseeId": 16, "StudentMarketings": { "$id": "2", "$values": [ { "$id": "3" }, { "$ref": "3" } ] } }
application/xml, text/xml
Sample:
<StudentBasic xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BO.Models.Students"> <Address>sample string 7</Address> <Birthday>2024-11-07T10:45:43.8336151+08:00</Birthday> <Comment>sample string 14</Comment> <Email>sample string 11</Email> <EmergencyName>sample string 12</EmergencyName> <EmergencyPhoneNumber>sample string 13</EmergencyPhoneNumber> <Female>true</Female> <FirstName>sample string 2</FirstName> <FranchiseeId>16</FranchiseeId> <LastName>sample string 3</LastName> <MobileNumber>sample string 9</MobileNumber> <Newsletter>true</Newsletter> <PhoneNumber>sample string 8</PhoneNumber> <Postcode>sample string 6</Postcode> <StateId>5</StateId> <StudentId>1</StudentId> <StudentMarketings> <StudentMarketing /> <StudentMarketing /> </StudentMarketings> <Suburb>sample string 4</Suburb> </StudentBasic>