Lock Vehicle

Last Updated on : 2023-06-20 14:54:10

Lock a vehicle with a specified license plate and restrict it from leaving the parking lot.

Note: Locking a vehicle means restricting it from leaving the parking lot, whereas the blocklist is used to restrict the entry of outside vehicles.

API address

POST: /v1.0/parking-control/{device_id}/cars/lock

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe ID of a specified device in the parking lot.

Description of body

Parameter nameTypeINRequiredDescription
plate_noString trueThe license plate number.

Return parameter

Parameter nameTypeDescription
resultCmdIssueResultResponseThe returned result.

Description of result

Parameter nameTypeDescription
snStringThe command record ID.

Request example

POST: /v1.0/parking-control/6ce****/cars/lock

Return example

{
    "result": {
        "sn": "135****"
    },
    "t": 1652779976771,
    "success": true
}

Error code

For more information, see error code.