PUT api/buildings/{buildingId}/spaces/{spaceId}

Update Space by ID

Request Information

URI Parameters

NameDescriptionTypeAdditional information
buildingId

Building ID

integer

Required

spaceId

Space ID

integer

Required

Body Parameters

Parking space update

ParkingSpaceUpdateViewModel
NameDescriptionTypeAdditional 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

Sample:
{
  "spaceDescription": "sample string 1",
  "taxRate": 1.0,
  "spaceTypeId": 1,
  "percentageOfOwnership": 1.0
}

application/xml, text/xml

Sample:
<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

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ParkingSpaceUpdateViewModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.