PUT api/Admin/Locations/{locationId}/Parking/Levels/{levelId}/Spaces/{spaceId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
locationId

integer

Required

levelId

integer

Required

spaceId

integer

Required

Body Parameters

ParkingSpacePostDTO
NameDescriptionTypeAdditional information
Name

string

None.

Active

boolean

None.

IsElectrical

boolean

None.

XCoord

decimal number

None.

YCoord

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Active": true,
  "IsElectrical": true,
  "XCoord": 4.0,
  "YCoord": 5.0
}

application/xml, text/xml

Sample:
<ParkingSpacePostDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bluedock.Booking.Rest.Models.Parking">
  <Active>true</Active>
  <IsElectrical>true</IsElectrical>
  <Name>sample string 1</Name>
  <XCoord>4</XCoord>
  <YCoord>5</YCoord>
</ParkingSpacePostDTO>

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 'ParkingSpacePostDTO'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.