PUT api/AssetBuilding/Update
Request Information
URI Parameters
None.
Body Parameters
AssetBuildingUpdateVM| Name | Description | Type | Additional information |
|---|---|---|---|
| BuildingId | integer |
Required |
|
| BookId | integer |
Required |
|
| BuildingName | string |
Required String length: inclusive between 0 and 100 |
|
| Code | string |
String length: inclusive between 0 and 10 |
|
| Asset | AssetLookupVM |
None. |
|
| 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 |
String length: inclusive between 0 and 100 |
|
| AddressLandMark | string |
String length: inclusive between 0 and 200 |
|
| PostOffice | PlaceLookup |
None. |
|
| District | PlaceLookup |
None. |
|
| State | PlaceLookup |
None. |
|
| Country | PlaceLookup |
None. |
|
| TotalArea | decimal number |
None. |
|
| 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
Sample:
{
"BuildingId": 1,
"BookId": 2,
"BuildingName": "sample string 3",
"Code": "sample string 4",
"Asset": {
"AssetId": 1,
"AssetName": "sample string 2"
},
"Address1": "sample string 5",
"Address2": "sample string 6",
"AddressPincode": "sample string 7",
"AddressPlace": "sample string 8",
"AddressLandMark": "sample string 9",
"PostOffice": {
"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"
},
"TotalArea": 10.0,
"Status": "sample string 11",
"UpdateUser": 12,
"UpdateIp": "sample string 13"
}
application/xml, text/xml
Sample:
<AssetBuildingUpdateVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
<Address1>sample string 5</Address1>
<Address2>sample string 6</Address2>
<AddressLandMark>sample string 9</AddressLandMark>
<AddressPincode>sample string 7</AddressPincode>
<AddressPlace>sample string 8</AddressPlace>
<Asset>
<AssetId>1</AssetId>
<AssetName>sample string 2</AssetName>
</Asset>
<BookId>2</BookId>
<BuildingId>1</BuildingId>
<BuildingName>sample string 3</BuildingName>
<Code>sample string 4</Code>
<Country>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</Country>
<District>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</District>
<PostOffice>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</PostOffice>
<State>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</State>
<Status>sample string 11</Status>
<TotalArea>10</TotalArea>
<UpdateIp>sample string 13</UpdateIp>
<UpdateUser>12</UpdateUser>
</AssetBuildingUpdateVM>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.