PUT api/PopulationDetails/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
PopulationDetailsViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| Type | string |
None. |
|
| Address | string |
None. |
|
| ReligionId | integer |
None. |
|
| WardNo | integer |
None. |
|
| LanguageId | integer |
None. |
|
| IsAnyBusiness | boolean |
None. |
|
| IsMarried | boolean |
None. |
|
| HouseOwnerDetailId | integer |
None. |
|
| ageGroupDataList | Collection of AgeGroupData |
None. |
|
| casteGroupDataList | Collection of CasteGroupDataModel |
None. |
|
| occupationGroupDataList | Collection of OccupationGroupDataModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"Type": "sample string 3",
"Address": "sample string 4",
"ReligionId": 5,
"WardNo": 6,
"LanguageId": 7,
"IsAnyBusiness": true,
"IsMarried": true,
"HouseOwnerDetailId": 10,
"ageGroupDataList": [
{
"Id": 1,
"Name": "sample string 2",
"Male": 3,
"Female": 4,
"Other": 5,
"Total": 6
},
{
"Id": 1,
"Name": "sample string 2",
"Male": 3,
"Female": 4,
"Other": 5,
"Total": 6
}
],
"casteGroupDataList": [
{
"Id": 1,
"Name": "sample string 2",
"Male": 3,
"Female": 4,
"Other": 5,
"Total": 6
},
{
"Id": 1,
"Name": "sample string 2",
"Male": 3,
"Female": 4,
"Other": 5,
"Total": 6
}
],
"occupationGroupDataList": [
{
"Id": 1,
"Name": "sample string 2",
"Male": 3,
"Female": 4,
"Other": 5,
"Total": 6
},
{
"Id": 1,
"Name": "sample string 2",
"Male": 3,
"Female": 4,
"Other": 5,
"Total": 6
}
]
}
text/xml
Sample:
<PopulationDetailsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MeroPalikaApi.Models">
<Address>sample string 4</Address>
<HouseOwnerDetailId>10</HouseOwnerDetailId>
<Id>1</Id>
<IsAnyBusiness>true</IsAnyBusiness>
<IsMarried>true</IsMarried>
<LanguageId>7</LanguageId>
<Name>sample string 2</Name>
<ReligionId>5</ReligionId>
<Type>sample string 3</Type>
<WardNo>6</WardNo>
<ageGroupDataList>
<PopulationDetailsViewModel.AgeGroupData>
<Female>4</Female>
<Id>1</Id>
<Male>3</Male>
<Name>sample string 2</Name>
<Other>5</Other>
<Total>6</Total>
</PopulationDetailsViewModel.AgeGroupData>
<PopulationDetailsViewModel.AgeGroupData>
<Female>4</Female>
<Id>1</Id>
<Male>3</Male>
<Name>sample string 2</Name>
<Other>5</Other>
<Total>6</Total>
</PopulationDetailsViewModel.AgeGroupData>
</ageGroupDataList>
<casteGroupDataList>
<PopulationDetailsViewModel.CasteGroupDataModel>
<Female>4</Female>
<Id>1</Id>
<Male>3</Male>
<Name>sample string 2</Name>
<Other>5</Other>
<Total>6</Total>
</PopulationDetailsViewModel.CasteGroupDataModel>
<PopulationDetailsViewModel.CasteGroupDataModel>
<Female>4</Female>
<Id>1</Id>
<Male>3</Male>
<Name>sample string 2</Name>
<Other>5</Other>
<Total>6</Total>
</PopulationDetailsViewModel.CasteGroupDataModel>
</casteGroupDataList>
<occupationGroupDataList>
<PopulationDetailsViewModel.OccupationGroupDataModel>
<Female>4</Female>
<Id>1</Id>
<Male>3</Male>
<Name>sample string 2</Name>
<Other>5</Other>
<Total>6</Total>
</PopulationDetailsViewModel.OccupationGroupDataModel>
<PopulationDetailsViewModel.OccupationGroupDataModel>
<Female>4</Female>
<Id>1</Id>
<Male>3</Male>
<Name>sample string 2</Name>
<Other>5</Other>
<Total>6</Total>
</PopulationDetailsViewModel.OccupationGroupDataModel>
</occupationGroupDataList>
</PopulationDetailsViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PopulationDetailsViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| Type | string |
None. |
|
| Address | string |
None. |
|
| ReligionId | integer |
None. |
|
| WardNo | integer |
None. |
|
| LanguageId | integer |
None. |
|
| IsAnyBusiness | boolean |
None. |
|
| IsMarried | boolean |
None. |
|
| HouseOwnerDetailId | integer |
None. |
|
| ageGroupDataList | Collection of AgeGroupData |
None. |
|
| casteGroupDataList | Collection of CasteGroupDataModel |
None. |
|
| occupationGroupDataList | Collection of OccupationGroupDataModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"Type": "sample string 3",
"Address": "sample string 4",
"ReligionId": 5,
"WardNo": 6,
"LanguageId": 7,
"IsAnyBusiness": true,
"IsMarried": true,
"HouseOwnerDetailId": 10,
"ageGroupDataList": [
{
"Id": 1,
"Name": "sample string 2",
"Male": 3,
"Female": 4,
"Other": 5,
"Total": 6
},
{
"Id": 1,
"Name": "sample string 2",
"Male": 3,
"Female": 4,
"Other": 5,
"Total": 6
}
],
"casteGroupDataList": [
{
"Id": 1,
"Name": "sample string 2",
"Male": 3,
"Female": 4,
"Other": 5,
"Total": 6
},
{
"Id": 1,
"Name": "sample string 2",
"Male": 3,
"Female": 4,
"Other": 5,
"Total": 6
}
],
"occupationGroupDataList": [
{
"Id": 1,
"Name": "sample string 2",
"Male": 3,
"Female": 4,
"Other": 5,
"Total": 6
},
{
"Id": 1,
"Name": "sample string 2",
"Male": 3,
"Female": 4,
"Other": 5,
"Total": 6
}
]
}
text/xml
Sample:
<PopulationDetailsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MeroPalikaApi.Models">
<Address>sample string 4</Address>
<HouseOwnerDetailId>10</HouseOwnerDetailId>
<Id>1</Id>
<IsAnyBusiness>true</IsAnyBusiness>
<IsMarried>true</IsMarried>
<LanguageId>7</LanguageId>
<Name>sample string 2</Name>
<ReligionId>5</ReligionId>
<Type>sample string 3</Type>
<WardNo>6</WardNo>
<ageGroupDataList>
<PopulationDetailsViewModel.AgeGroupData>
<Female>4</Female>
<Id>1</Id>
<Male>3</Male>
<Name>sample string 2</Name>
<Other>5</Other>
<Total>6</Total>
</PopulationDetailsViewModel.AgeGroupData>
<PopulationDetailsViewModel.AgeGroupData>
<Female>4</Female>
<Id>1</Id>
<Male>3</Male>
<Name>sample string 2</Name>
<Other>5</Other>
<Total>6</Total>
</PopulationDetailsViewModel.AgeGroupData>
</ageGroupDataList>
<casteGroupDataList>
<PopulationDetailsViewModel.CasteGroupDataModel>
<Female>4</Female>
<Id>1</Id>
<Male>3</Male>
<Name>sample string 2</Name>
<Other>5</Other>
<Total>6</Total>
</PopulationDetailsViewModel.CasteGroupDataModel>
<PopulationDetailsViewModel.CasteGroupDataModel>
<Female>4</Female>
<Id>1</Id>
<Male>3</Male>
<Name>sample string 2</Name>
<Other>5</Other>
<Total>6</Total>
</PopulationDetailsViewModel.CasteGroupDataModel>
</casteGroupDataList>
<occupationGroupDataList>
<PopulationDetailsViewModel.OccupationGroupDataModel>
<Female>4</Female>
<Id>1</Id>
<Male>3</Male>
<Name>sample string 2</Name>
<Other>5</Other>
<Total>6</Total>
</PopulationDetailsViewModel.OccupationGroupDataModel>
<PopulationDetailsViewModel.OccupationGroupDataModel>
<Female>4</Female>
<Id>1</Id>
<Male>3</Male>
<Name>sample string 2</Name>
<Other>5</Other>
<Total>6</Total>
</PopulationDetailsViewModel.OccupationGroupDataModel>
</occupationGroupDataList>
</PopulationDetailsViewModel>