Add Special Vehicle

Last Updated on : 2022-06-01 10:01:38

Add a specified license plate to the specified type of vehicle.

Note:

  • Currently, special vehicles consist of blocklist vehicles and allowlist vehicles.
  • The blocklist is used to restrict the entry of outside vehicles, and locking a vehicle means restricting it from leaving the parking lot.

API address

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

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.
typeInteger trueThe type of a special vehicle. Valid values:
  • 0: allowlist.
  • 1: blocklist.

Return parameter

Parameter nameTypeDescription
resultCmdIssueResultResponseThe returned result.

Description of result

Parameter nameTypeDescription
snStringThe command record ID.

Request example

POST: /v1.0/parking-control/6ce****/special-cars
{
  "plateNo": "A1***5",
  "type": 1
}

Return example

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

Error code

For more information, see error code.