PUT api/units/{unitId}/profile
Save Unit Profile
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| unitId |
|
integer |
Required |
Body Parameters
SaveUnitProfileViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| PercentOwned |
Percent Owned value ({10}.{9}) |
decimal number |
Range: inclusive between 0 and 9999999999.999999999 |
| Description |
Unit Description |
string |
Max length: 50 |
| UnitTypeId |
Unit Type |
integer |
Range: inclusive between 0 and 2147483647 |
| NumberOfShares |
|
decimal number |
Range: inclusive between 0 and 99999999.99 |
| SquareFootage |
Square Footage value ({9}.{3}) |
decimal number |
Range: inclusive between 0 and 999999999.999 |
| NoOfRooms |
No of Rooms max value ({8}) |
integer |
Range: inclusive between 0 and 99999999 |
| Block |
Block |
string |
Max length: 15 |
| Lot |
Lot |
string |
Max length: 15 |
| ParcelId |
Parcel ID |
string |
Max length: 50 |
| LegalUnitNumber |
Legal Unit Number |
string |
Max length: 50 |
| Address |
|
AddressBaseViewModel |
Required |
Request Formats
application/json, text/json
{
"percentOwned": 1.0,
"description": "sample string 2",
"unitTypeId": 1,
"numberOfShares": 1.0,
"squareFootage": 1.0,
"noOfRooms": 1,
"block": "sample string 3",
"lot": "sample string 4",
"parcelId": "sample string 5",
"legalUnitNumber": "sample string 6",
"address": {
"address1": "sample string 1",
"address2": "sample string 2",
"city": "sample string 3",
"state": "sample string 4",
"zipCode": "sample string 5",
"country": "sample string 6"
}
}
application/xml, text/xml
<SaveUnitProfileViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.Units">
<Address xmlns:d2p1="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.Address">
<d2p1:Address1>sample string 1</d2p1:Address1>
<d2p1:Address2>sample string 2</d2p1:Address2>
<d2p1:City>sample string 3</d2p1:City>
<d2p1:Country>sample string 6</d2p1:Country>
<d2p1:State>sample string 4</d2p1:State>
<d2p1:ZipCode>sample string 5</d2p1:ZipCode>
</Address>
<Block>sample string 3</Block>
<Description>sample string 2</Description>
<LegalUnitNumber>sample string 6</LegalUnitNumber>
<Lot>sample string 4</Lot>
<NoOfRooms>1</NoOfRooms>
<NumberOfShares>1</NumberOfShares>
<ParcelId>sample string 5</ParcelId>
<PercentOwned>1</PercentOwned>
<SquareFootage>1</SquareFootage>
<UnitTypeId>1</UnitTypeId>
</SaveUnitProfileViewModel>
application/x-www-form-urlencoded
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample not available.