Control Barrier Gate

Last Updated on : 2022-09-22 08:59:02

Based on the ID of a specified barrier gate, send a control command to open or close a barrier gate, or keep it normally open or normally closed. The parking lots of some brands do not support the normally open and normally closed features.

API address

PUT: /v1.0/parking-control/{device_id}/gates/control

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe ID of a specified barrier gate.

Description of body

Parameter nameTypeINRequiredDescription
open_modelInteger trueThe mode of a specified barrier gate. Some parking lots only support 1 and 2.
  • 1: Open the barrier gate.
  • 2: Close the barrier gate.
  • 3: Keep the barrier gate normally open.
  • 4: Keep the barrier gate normally closed.

Return parameter

Parameter nameTypeDescription
resultCmdIssueResultResponseThe response result.

Description of result

Parameter nameTypeDescription
snStringThe ID of a specified command record.

Request example

PUT: /v1.0/parking-control/6ce****/cars/current
{
  "openModel": 1
}

Return example

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

Error code

For more information, see error code.