PUT api/Admin/Locations/{id}/Parking

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

ParkingSpacesUpdatesPostDTO
NameDescriptionTypeAdditional information
Updates

Collection of ParkingSpaceUpdateDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "Updates": [
    {
      "Id": 1,
      "Name": "sample string 1",
      "IsElectrical": true,
      "XCoord": 1.0,
      "YCoord": 1.0,
      "Active": true
    },
    {
      "Id": 1,
      "Name": "sample string 1",
      "IsElectrical": true,
      "XCoord": 1.0,
      "YCoord": 1.0,
      "Active": true
    }
  ]
}

application/xml, text/xml

Sample:
<ParkingSpacesUpdatesPostDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bluedock.Booking.Rest.Models.Admin">
  <Updates>
    <ParkingSpaceUpdateDTO>
      <Active>true</Active>
      <Id>1</Id>
      <IsElectrical>true</IsElectrical>
      <Name>sample string 1</Name>
      <XCoord>1</XCoord>
      <YCoord>1</YCoord>
    </ParkingSpaceUpdateDTO>
    <ParkingSpaceUpdateDTO>
      <Active>true</Active>
      <Id>1</Id>
      <IsElectrical>true</IsElectrical>
      <Name>sample string 1</Name>
      <XCoord>1</XCoord>
      <YCoord>1</YCoord>
    </ParkingSpaceUpdateDTO>
  </Updates>
</ParkingSpacesUpdatesPostDTO>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.