POST api/v1/parents/parent
Request Information
URI Parameters
None.
Body Parameters
ParentModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| OperatorId | integer |
Required |
|
| Name | string |
Required Max length: 50 |
|
| SocialSecurityNumber | string |
Max length: 12 |
|
| Address | string |
None. |
|
| Phone | string |
Max length: 20 |
|
| MobilePhone | string |
Max length: 20 |
|
| string |
Max length: 100 |
||
| RelatedParentId | integer |
None. |
|
| IsDeleted | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"OperatorId": 2,
"Name": "sample string 3",
"SocialSecurityNumber": "sample string 4",
"Address": "sample string 5",
"Phone": "sample string 6",
"MobilePhone": "sample string 7",
"Email": "sample string 8",
"RelatedParentId": 1,
"IsDeleted": true
}
application/xml, text/xml
Sample:
<ParentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emalogic.Conservatory.Common.Models"> <Address>sample string 5</Address> <Email>sample string 8</Email> <Id>1</Id> <IsDeleted>true</IsDeleted> <MobilePhone>sample string 7</MobilePhone> <Name>sample string 3</Name> <OperatorId>2</OperatorId> <Phone>sample string 6</Phone> <RelatedParentId>1</RelatedParentId> <SocialSecurityNumber>sample string 4</SocialSecurityNumber> </ParentModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<long xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</long>