PUT api/Admin/Locations/{id}/Parking
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
ParkingSpacesUpdatesPostDTO| Name | Description | Type | Additional 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:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.