PUT api/Establishment/Update
Request Information
URI Parameters
None.
Body Parameters
EstablishmentUpdateVM| Name | Description | Type | Additional information |
|---|---|---|---|
| EstablishId | integer |
Required |
|
| 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 |
|
| UpdateUser | integer |
Required |
|
| UpdateIp | string |
Required String length: inclusive between 0 and 20 |
Request Formats
application/json, text/json
{
"EstablishId": 1,
"EstablishName": "sample string 2",
"Code": "sample string 3",
"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 4",
"EstablishedYear": 5,
"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 6",
"PhoneNumber": "sample string 7",
"MobileNumber": "sample string 8",
"Email": "sample string 9",
"Address1": "sample string 10",
"Address2": "sample string 11",
"AddressPincode": "sample string 12",
"AddressPlace": "sample string 13",
"AddressLandMark": "sample string 14",
"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": 15,
"TotalHouses": 16,
"ComAddress1": "sample string 17",
"ComAddress2": "sample string 18",
"ComAddressPincode": "sample string 19",
"ComAddressPlace": "sample string 20",
"ComAddressLandMark": "sample string 21",
"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 22",
"Status": "sample string 23",
"UpdateUser": 24,
"UpdateIp": "sample string 25"
}
application/xml, text/xml
<EstablishmentUpdateVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
<Address1>sample string 10</Address1>
<Address2>sample string 11</Address2>
<AddressCountry>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</AddressCountry>
<AddressDistrict>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</AddressDistrict>
<AddressLandMark>sample string 14</AddressLandMark>
<AddressPincode>sample string 12</AddressPincode>
<AddressPlace>sample string 13</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 3</Code>
<ComAddress1>sample string 17</ComAddress1>
<ComAddress2>sample string 18</ComAddress2>
<ComAddressCountry>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</ComAddressCountry>
<ComAddressDistrict>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</ComAddressDistrict>
<ComAddressLandMark>sample string 21</ComAddressLandMark>
<ComAddressPincode>sample string 19</ComAddressPincode>
<ComAddressPlace>sample string 20</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>
<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 9</Email>
<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>
<EstablishedYear>5</EstablishedYear>
<FoundationDate>sample string 4</FoundationDate>
<IsSecretoryAddress>sample string 22</IsSecretoryAddress>
<Language>
<LanguageId>1</LanguageId>
<LanguageName>sample string 2</LanguageName>
</Language>
<MobileNumber>sample string 8</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 7</PhoneNumber>
<ReSurveyNumber>sample string 6</ReSurveyNumber>
<Status>sample string 23</Status>
<TotalHouses>16</TotalHouses>
<TotalMembers>15</TotalMembers>
<UpdateIp>sample string 25</UpdateIp>
<UpdateUser>24</UpdateUser>
</EstablishmentUpdateVM>
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.