v1

latestOpenAPI 3.1.02026-07-2617501.1 MB

List the camera connection events

get/v1/camera_connections

Query parameters

vehicle_ids[]integer[]

Specify the ID of a vehicle or vehicles for which you want to view the existing camera connections.

driver_ids[]integer[]

Specify the ID of a driver or drivers for whom you want to view the camera connections..

start_datestring date

Specify the start date from when you want to view the camera connections.

end_datestring date

Specify the end date till when you want to view the camera connections.

typestring

Specify the type of camera connection. Allowed values are connected, disconnected, disabled.

statusstring

Specify the status of the camera connection event. Allowed values are correct, incorrect.

per_pageinteger

Number of records to return per page.

page_nointeger

Denotes the current page number.

sort_fieldstring

Specify the field to sort the response with. Allowed values are: start_time, end_time, status.

sort_directionstring

Specify the order for displaying the response list. Allowed values are asc: Ascending, desc: Descending.

Response

200

per_pageinteger
page_nointeger
totalinteger

Example response

{
  "camera_connections": [
    {
      "camera_connection": {
        "id": 41901,
        "offline_id": "9ad7445a-920e-49b3-9428-64506ebfce06",
        "created_at": "2024-12-14T12:12:55Z",
        "updated_at": "2024-12-14T12:13:54Z",
        "type": "disconnected",
        "duration": 188610.242704913,
        "cam_type": "dc54",
        "cam_serial_num": "ABAD41DB490142",
        "sw_pkg_version": 99130,
        "status": "correct",
        "vehicle": {
          "id": 117868,
          "number": "AABL36QC252488"
        },
        "current_driver": {
          "id": 1050022,
          "first_name": "farjad",
          "last_name": "khan1",
          "driver_company_id": "61101"
        }
      }
    }
  ],
  "per_page": 25,
  "page_no": 1
}