POST api/Establishment/Save
Request Information
URI Parameters
None.
Body Parameters
EstablishmentSaveVM| 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 | EstablishTypeLookupVM |
Required |
|
| EstablishCategory | EstablishCategoryLookupVM |
None. |
|
| Diocese | EstablishmentLookupVM |
None. |
|
| Centre | EstablishmentLookupVM |
None. |
|
| Parish | EstablishmentLookupVM |
None. |
|
| FoundationDate | string |
None. |
|
| EstablishedYear | integer |
None. |
|
| ConsecratedBy | ClergyLookupVM |
None. |
|
| ReSurveyNumber | string |
String length: inclusive between 0 and 100 |
|
| 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 |
|
| AddressPlace | string |
None. |
|
| AddressLandMark | string |
String length: inclusive between 0 and 200 |
|
| AddressPostOffice | PlaceLookupVM |
None. |
|
| AddressDistrict | PlaceLookupVM |
None. |
|
| AddressState | PlaceLookupVM |
None. |
|
| AddressCountry | PlaceLookupVM |
None. |
|
| Language | LanguageLookupVM |
None. |
|
| TotalMembers | integer |
Range: inclusive between 0 and 99999 |
|
| TotalHouses | integer |
Range: inclusive between 0 and 9999 |
|
| ComAddress1 | string |
String length: inclusive between 0 and 200 |
|
| ComAddress2 | string |
String length: inclusive between 0 and 200 |
|
| ComAddressPincode | string |
String length: inclusive between 0 and 50 |
|
| ComAddressPlace | string |
String length: inclusive between 0 and 100 |
|
| ComAddressLandMark | string |
String length: inclusive between 0 and 200 |
|
| ComAddressPostOffice | PlaceLookupVM |
None. |
|
| ComAddressDistrict | PlaceLookupVM |
None. |
|
| ComAddressState | PlaceLookupVM |
None. |
|
| ComAddressCountry | PlaceLookupVM |
None. |
|
| IsSecretoryAddress | string |
Required Matching regular expression pattern: Y|N |
|
| 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
{
"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",
"EstablishType": {
"EstablishTypeId": 1,
"EstablishTypeName": "sample string 2"
},
"EstablishCategory": {
"EstablishCategoryId": 1,
"EstablishCategoryName": "sample string 2"
},
"TotalMembers": 3,
"TotalHouses": 4
},
"Centre": {
"EstablishId": 1,
"EstablishName": "sample string 2",
"EstablishType": {
"EstablishTypeId": 1,
"EstablishTypeName": "sample string 2"
},
"EstablishCategory": {
"EstablishCategoryId": 1,
"EstablishCategoryName": "sample string 2"
},
"TotalMembers": 3,
"TotalHouses": 4
},
"Parish": {
"EstablishId": 1,
"EstablishName": "sample string 2",
"EstablishType": {
"EstablishTypeId": 1,
"EstablishTypeName": "sample string 2"
},
"EstablishCategory": {
"EstablishCategoryId": 1,
"EstablishCategoryName": "sample string 2"
},
"TotalMembers": 3,
"TotalHouses": 4
},
"FoundationDate": "sample string 3",
"EstablishedYear": 4,
"ConsecratedBy": {
"ClergyId": 1,
"ClergyName": "sample string 2",
"Prefix": {
"PrefixId": 1,
"PrefixName": "sample string 2"
},
"Address": "sample string 3",
"ClergyStatusName": "sample string 4",
"DOB": "sample string 5",
"DeaconDate": "sample string 6",
"ClergyCategoryId": 7,
"ClergyTypeId": 8
},
"ReSurveyNumber": "sample string 5",
"PhoneNumber": "sample string 6",
"MobileNumber": "sample string 7",
"Email": "sample string 8",
"Address1": "sample string 9",
"Address2": "sample string 10",
"AddressPincode": "sample string 11",
"AddressPlace": "sample string 12",
"AddressLandMark": "sample string 13",
"AddressPostOffice": {
"PlaceId": 1,
"PlaceName": "sample string 2"
},
"AddressDistrict": {
"PlaceId": 1,
"PlaceName": "sample string 2"
},
"AddressState": {
"PlaceId": 1,
"PlaceName": "sample string 2"
},
"AddressCountry": {
"PlaceId": 1,
"PlaceName": "sample string 2"
},
"Language": {
"LanguageId": 1,
"LanguageName": "sample string 2"
},
"TotalMembers": 14,
"TotalHouses": 15,
"ComAddress1": "sample string 16",
"ComAddress2": "sample string 17",
"ComAddressPincode": "sample string 18",
"ComAddressPlace": "sample string 19",
"ComAddressLandMark": "sample string 20",
"ComAddressPostOffice": {
"PlaceId": 1,
"PlaceName": "sample string 2"
},
"ComAddressDistrict": {
"PlaceId": 1,
"PlaceName": "sample string 2"
},
"ComAddressState": {
"PlaceId": 1,
"PlaceName": "sample string 2"
},
"ComAddressCountry": {
"PlaceId": 1,
"PlaceName": "sample string 2"
},
"IsSecretoryAddress": "sample string 21",
"Status": "sample string 22",
"CreateUser": 23,
"CreateIp": "sample string 24"
}
application/xml, text/xml
<EstablishmentSaveVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
<Address1>sample string 9</Address1>
<Address2>sample string 10</Address2>
<AddressCountry>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</AddressCountry>
<AddressDistrict>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</AddressDistrict>
<AddressLandMark>sample string 13</AddressLandMark>
<AddressPincode>sample string 11</AddressPincode>
<AddressPlace>sample string 12</AddressPlace>
<AddressPostOffice>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</AddressPostOffice>
<AddressState>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</AddressState>
<Centre>
<EstablishCategory>
<EstablishCategoryId>1</EstablishCategoryId>
<EstablishCategoryName>sample string 2</EstablishCategoryName>
</EstablishCategory>
<EstablishId>1</EstablishId>
<EstablishName>sample string 2</EstablishName>
<EstablishType>
<EstablishTypeId>1</EstablishTypeId>
<EstablishTypeName>sample string 2</EstablishTypeName>
</EstablishType>
<TotalHouses>4</TotalHouses>
<TotalMembers>3</TotalMembers>
</Centre>
<Code>sample string 2</Code>
<ComAddress1>sample string 16</ComAddress1>
<ComAddress2>sample string 17</ComAddress2>
<ComAddressCountry>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</ComAddressCountry>
<ComAddressDistrict>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</ComAddressDistrict>
<ComAddressLandMark>sample string 20</ComAddressLandMark>
<ComAddressPincode>sample string 18</ComAddressPincode>
<ComAddressPlace>sample string 19</ComAddressPlace>
<ComAddressPostOffice>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</ComAddressPostOffice>
<ComAddressState>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</ComAddressState>
<ConsecratedBy>
<Address>sample string 3</Address>
<ClergyCategoryId>7</ClergyCategoryId>
<ClergyId>1</ClergyId>
<ClergyName>sample string 2</ClergyName>
<ClergyStatusName>sample string 4</ClergyStatusName>
<ClergyTypeId>8</ClergyTypeId>
<DOB>sample string 5</DOB>
<DeaconDate>sample string 6</DeaconDate>
<Prefix>
<PrefixId>1</PrefixId>
<PrefixName>sample string 2</PrefixName>
</Prefix>
</ConsecratedBy>
<CreateIp>sample string 24</CreateIp>
<CreateUser>23</CreateUser>
<Diocese>
<EstablishCategory>
<EstablishCategoryId>1</EstablishCategoryId>
<EstablishCategoryName>sample string 2</EstablishCategoryName>
</EstablishCategory>
<EstablishId>1</EstablishId>
<EstablishName>sample string 2</EstablishName>
<EstablishType>
<EstablishTypeId>1</EstablishTypeId>
<EstablishTypeName>sample string 2</EstablishTypeName>
</EstablishType>
<TotalHouses>4</TotalHouses>
<TotalMembers>3</TotalMembers>
</Diocese>
<Email>sample string 8</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>
<EstablishedYear>4</EstablishedYear>
<FoundationDate>sample string 3</FoundationDate>
<IsSecretoryAddress>sample string 21</IsSecretoryAddress>
<Language>
<LanguageId>1</LanguageId>
<LanguageName>sample string 2</LanguageName>
</Language>
<MobileNumber>sample string 7</MobileNumber>
<Parish>
<EstablishCategory>
<EstablishCategoryId>1</EstablishCategoryId>
<EstablishCategoryName>sample string 2</EstablishCategoryName>
</EstablishCategory>
<EstablishId>1</EstablishId>
<EstablishName>sample string 2</EstablishName>
<EstablishType>
<EstablishTypeId>1</EstablishTypeId>
<EstablishTypeName>sample string 2</EstablishTypeName>
</EstablishType>
<TotalHouses>4</TotalHouses>
<TotalMembers>3</TotalMembers>
</Parish>
<PhoneNumber>sample string 6</PhoneNumber>
<ReSurveyNumber>sample string 5</ReSurveyNumber>
<Status>sample string 22</Status>
<TotalHouses>15</TotalHouses>
<TotalMembers>14</TotalMembers>
</EstablishmentSaveVM>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample not available.