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 | EstablishmentLookup |
None. |
|
| Centre | EstablishmentLookup |
None. |
|
| Parish | EstablishmentLookup |
None. |
|
| FoundationDate | string |
None. |
|
| EstablishedYear | integer |
None. |
|
| ConsecratedBy | ClergyLookup |
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 |
|
| Place | string |
None. |
|
| AddressLandMark | string |
String length: inclusive between 0 and 200 |
|
| PO | PlaceLookup |
None. |
|
| District | PlaceLookup |
None. |
|
| State | PlaceLookup |
None. |
|
| Country | PlaceLookup |
None. |
|
| Language | LanguageLookup |
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 |
|
| ComPincode | string |
String length: inclusive between 0 and 50 |
|
| ComPlace | string |
String length: inclusive between 0 and 100 |
|
| ComLandMark | string |
String length: inclusive between 0 and 200 |
|
| ComPO | PlaceLookup |
None. |
|
| ComDistrict | PlaceLookup |
None. |
|
| ComState | PlaceLookup |
None. |
|
| ComCountry | PlaceLookup |
None. |
|
| IsSecratoryAddress | 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",
"ClergyStatus": "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",
"Place": "sample string 12",
"AddressLandMark": "sample string 13",
"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"
},
"Language": {
"LanguageId": 1,
"LanguageName": "sample string 2"
},
"TotalMembers": 14,
"TotalHouses": 15,
"ComAddress1": "sample string 16",
"ComAddress2": "sample string 17",
"ComPincode": "sample string 18",
"ComPlace": "sample string 19",
"ComLandMark": "sample string 20",
"ComPO": {
"PlaceId": 1,
"PlaceName": "sample string 2"
},
"ComDistrict": {
"PlaceId": 1,
"PlaceName": "sample string 2"
},
"ComState": {
"PlaceId": 1,
"PlaceName": "sample string 2"
},
"ComCountry": {
"PlaceId": 1,
"PlaceName": "sample string 2"
},
"IsSecratoryAddress": "sample string 21",
"Status": "sample string 22",
"CreateUser": 23,
"CreateIp": "sample string 24"
}
application/xml, text/xml
<EstablishmentSave 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>
<AddressLandMark>sample string 13</AddressLandMark>
<AddressPincode>sample string 11</AddressPincode>
<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>
<ComCountry>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</ComCountry>
<ComDistrict>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</ComDistrict>
<ComLandMark>sample string 20</ComLandMark>
<ComPO>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</ComPO>
<ComPincode>sample string 18</ComPincode>
<ComPlace>sample string 19</ComPlace>
<ComState>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</ComState>
<ConsecratedBy>
<Address>sample string 3</Address>
<ClergyCategoryId>7</ClergyCategoryId>
<ClergyId>1</ClergyId>
<ClergyName>sample string 2</ClergyName>
<ClergyStatus>sample string 4</ClergyStatus>
<ClergyTypeId>8</ClergyTypeId>
<DOB>sample string 5</DOB>
<DeaconDate>sample string 6</DeaconDate>
<Prefix>
<PrefixId>1</PrefixId>
<PrefixName>sample string 2</PrefixName>
</Prefix>
</ConsecratedBy>
<Country>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</Country>
<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>
<District>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</District>
<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>
<IsSecratoryAddress>sample string 21</IsSecratoryAddress>
<Language>
<LanguageId>1</LanguageId>
<LanguageName>sample string 2</LanguageName>
</Language>
<MobileNumber>sample string 7</MobileNumber>
<PO>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</PO>
<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>
<Place>sample string 12</Place>
<ReSurveyNumber>sample string 5</ReSurveyNumber>
<State>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</State>
<Status>sample string 22</Status>
<TotalHouses>15</TotalHouses>
<TotalMembers>14</TotalMembers>
</EstablishmentSave>
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.