Update Visitor Vehicle

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

Update the information about a visitor vehicle based on the visitor vehicle ID.

API address

PUT: /v1.0/parking-control/{device_id}/visitor-cars/{visitor_car_id}

Request parameter

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

Description of body

Parameter nameTypeINRequiredDescription
visitor_car_idString trueThe ID of a specified visitor vehicle.
plate_noString trueThe license plate number of a specified visitor vehicle.
visitor_nameString trueThe name of a specified visitor.
begin_timeLong trueThe start time of the accessible period for a specified visitor vehicle.
end_timeLong trueThe end time of the accessible period for a specified visitor vehicle.
visitor_phoneString trueThe mobile phone number of the visitor.

Return parameter

Parameter nameTypeDescription
resultCmdIssueResultResponseThe returned result.

Description of result

Parameter nameTypeDescription
snStringThe command record ID.

Request example

PUT: /v1.0/parking-control/6ce****/visitor-cars/123****
{
  "visitorCarId": "1",
  "plateNo": "A1***6",
  "visitorName": "Lee**",
  "beginTime": 1652777782808,
  "endTime": 1655456182000,
  "visitorPhone": "133****1234"
}

Return example

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

Error code

For more information, see error code.