POST api/Establishment/Save
Request Information
URI Parameters
None.
Body Parameters
EstablishmentSave| Name | Description | Type | Additional information |
|---|---|---|---|
| EstablishName | string |
Required String length: inclusive between 0 and 100 |
|
| Code | string |
String length: inclusive between 0 and 10 |
|
| EstablishType | EstablishTypeLookup |
Required |
|
| EstablishCategory | EstablishCategoryLookup |
None. |
|
| Diocese | EstablishmentLookupVM |
None. |
|
| Centre | EstablishmentLookupVM |
None. |
|
| Parish | EstablishmentLookupVM |
None. |
|
| PhoneNumber | string |
String length: inclusive between 0 and 50 |
|
| MobileNumber | string |
String length: inclusive between 0 and 50 |
|
| string |
String length: inclusive between 0 and 100 |
||
| Address1 | string |
String length: inclusive between 0 and 200 |
|
| Address2 | string |
String length: inclusive between 0 and 200 |
|
| AddressPincode | string |
String length: inclusive between 0 and 50 |
|
| Place | string |
None. |
|
| AddressLandMark | string |
String length: inclusive between 0 and 200 |
|
| PO | PlaceLookupVM |
None. |
|
| District | PlaceLookupVM |
None. |
|
| State | PlaceLookupVM |
None. |
|
| Country | PlaceLookupVM |
None. |
|
| Status | string |
Required Matching regular expression pattern: A|I |
|
| CreateUser | integer |
Required |
|
| CreateIp | string |
Required String length: inclusive between 0 and 20 |
Request Formats
application/json, text/json
Sample:
{
"EstablishName": "sample string 1",
"Code": "sample string 2",
"EstablishType": {
"EstablishTypeId": 1,
"EstablishTypeName": "sample string 2"
},
"EstablishCategory": {
"EstablishCategoryId": 1,
"EstablishCategoryName": "sample string 2"
},
"Diocese": {
"EstablishId": 1,
"EstablishName": "sample string 2"
},
"Centre": {
"EstablishId": 1,
"EstablishName": "sample string 2"
},
"Parish": {
"EstablishId": 1,
"EstablishName": "sample string 2"
},
"PhoneNumber": "sample string 3",
"MobileNumber": "sample string 4",
"Email": "sample string 5",
"Address1": "sample string 6",
"Address2": "sample string 7",
"AddressPincode": "sample string 8",
"Place": "sample string 9",
"AddressLandMark": "sample string 10",
"PO": {
"PlaceId": 1,
"PlaceName": "sample string 2"
},
"District": {
"PlaceId": 1,
"PlaceName": "sample string 2"
},
"State": {
"PlaceId": 1,
"PlaceName": "sample string 2"
},
"Country": {
"PlaceId": 1,
"PlaceName": "sample string 2"
},
"Status": "sample string 11",
"CreateUser": 12,
"CreateIp": "sample string 13"
}
application/xml, text/xml
Sample:
<EstablishmentSave xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
<Address1>sample string 6</Address1>
<Address2>sample string 7</Address2>
<AddressLandMark>sample string 10</AddressLandMark>
<AddressPincode>sample string 8</AddressPincode>
<Centre>
<EstablishId>1</EstablishId>
<EstablishName>sample string 2</EstablishName>
</Centre>
<Code>sample string 2</Code>
<Country>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</Country>
<CreateIp>sample string 13</CreateIp>
<CreateUser>12</CreateUser>
<Diocese>
<EstablishId>1</EstablishId>
<EstablishName>sample string 2</EstablishName>
</Diocese>
<District>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</District>
<Email>sample string 5</Email>
<EstablishCategory>
<EstablishCategoryId>1</EstablishCategoryId>
<EstablishCategoryName>sample string 2</EstablishCategoryName>
</EstablishCategory>
<EstablishName>sample string 1</EstablishName>
<EstablishType>
<EstablishTypeId>1</EstablishTypeId>
<EstablishTypeName>sample string 2</EstablishTypeName>
</EstablishType>
<MobileNumber>sample string 4</MobileNumber>
<PO>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</PO>
<Parish>
<EstablishId>1</EstablishId>
<EstablishName>sample string 2</EstablishName>
</Parish>
<PhoneNumber>sample string 3</PhoneNumber>
<Place>sample string 9</Place>
<State>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</State>
<Status>sample string 11</Status>
</EstablishmentSave>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.