PUT api/Establishment/Update
Request Information
URI Parameters
None.
Body Parameters
EstablishmentUpdate| 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 | 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 |
|
| 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",
"ClergyStatus": "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",
"Place": "sample string 13",
"AddressLandMark": "sample string 14",
"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": 15,
"TotalHouses": 16,
"ComAddress1": "sample string 17",
"ComAddress2": "sample string 18",
"ComPincode": "sample string 19",
"ComPlace": "sample string 20",
"ComLandMark": "sample string 21",
"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 22",
"Status": "sample string 23",
"UpdateUser": 24,
"UpdateIp": "sample string 25"
}
application/xml, text/xml
<EstablishmentUpdate 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>
<AddressLandMark>sample string 14</AddressLandMark>
<AddressPincode>sample string 12</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 3</Code>
<ComAddress1>sample string 17</ComAddress1>
<ComAddress2>sample string 18</ComAddress2>
<ComCountry>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</ComCountry>
<ComDistrict>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</ComDistrict>
<ComLandMark>sample string 21</ComLandMark>
<ComPO>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</ComPO>
<ComPincode>sample string 19</ComPincode>
<ComPlace>sample string 20</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>
<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 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>
<IsSecratoryAddress>sample string 22</IsSecratoryAddress>
<Language>
<LanguageId>1</LanguageId>
<LanguageName>sample string 2</LanguageName>
</Language>
<MobileNumber>sample string 8</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 7</PhoneNumber>
<Place>sample string 13</Place>
<ReSurveyNumber>sample string 6</ReSurveyNumber>
<State>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</State>
<Status>sample string 23</Status>
<TotalHouses>16</TotalHouses>
<TotalMembers>15</TotalMembers>
<UpdateIp>sample string 25</UpdateIp>
<UpdateUser>24</UpdateUser>
</EstablishmentUpdate>
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.