PUT api/Admin/Locations/{locationId}/Parking/Levels/{levelId}/Zones/{zoneId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| locationId | integer |
Required |
|
| levelId | integer |
Required |
|
| zoneId | integer |
Required |
Body Parameters
ParkingZonePostDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| IsActive | boolean |
None. |
|
| AccessRoles | Collection of ParkingZoneAccessRoleDTO |
None. |
|
| ParkingSpaceIds | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"IsActive": true,
"AccessRoles": [
{
"GroupId": "sample string 1",
"GroupName": "sample string 2"
},
{
"GroupId": "sample string 1",
"GroupName": "sample string 2"
}
],
"ParkingSpaceIds": [
1,
2
]
}
application/xml, text/xml
Sample:
<ParkingZonePostDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bluedock.Booking.Rest.Models.Parking">
<AccessRoles>
<ParkingZoneAccessRoleDTO>
<GroupId>sample string 1</GroupId>
<GroupName>sample string 2</GroupName>
</ParkingZoneAccessRoleDTO>
<ParkingZoneAccessRoleDTO>
<GroupId>sample string 1</GroupId>
<GroupName>sample string 2</GroupName>
</ParkingZoneAccessRoleDTO>
</AccessRoles>
<IsActive>true</IsActive>
<Name>sample string 1</Name>
<ParkingSpaceIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</ParkingSpaceIds>
</ParkingZonePostDTO>
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.