PUT api/buildings/{buildingId}/spaces/{spaceId}
Update Space by ID
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| buildingId |
Building ID |
integer |
Required |
| spaceId |
Space ID |
integer |
Required |
Body Parameters
Parking space update
ParkingSpaceUpdateViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| SpaceDescription |
ParkingSpaceDescription |
string |
Required Matching regular expression pattern: ^[\w\d\s]*$ Max length: 50 |
| TaxRate |
TaxRate |
decimal number |
Range: inclusive between 0 and 100 |
| SpaceTypeId |
Space Type Id |
integer |
Required |
| PercentageOfOwnership |
Percentage of ownership |
decimal number |
Required Range: inclusive between 0 and 100 |
Request Formats
application/json, text/json
{
"spaceDescription": "sample string 1",
"taxRate": 1.0,
"spaceTypeId": 1,
"percentageOfOwnership": 1.0
}
application/xml, text/xml
<ParkingSpaceUpdateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.ParkingSpace"> <PercentageOfOwnership>1</PercentageOfOwnership> <SpaceDescription>sample string 1</SpaceDescription> <SpaceTypeId>1</SpaceTypeId> <TaxRate>1</TaxRate> </ParkingSpaceUpdateViewModel>
application/x-www-form-urlencoded
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample not available.