---
title: "InsightsVehicleInspectionHistoryResponse"
url: "https://developers.vzconnect.com/apis/fleet-inspections-api/versions/e4689b0c-c26d-40d6-b023-5303083c4a3f/schemas/InsightsVehicleInspectionHistoryResponse"
---

> Full API specification: https://developers.vzconnect.com/apis/fleet-inspections-api/versions/e4689b0c-c26d-40d6-b023-5303083c4a3f.md

# InsightsVehicleInspectionHistoryResponse

Response containing a list of vehicle inspection history items

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Fleet Inspections API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
components:
  schemas:
    Link:
      title: Link
      required:
        - href
        - rel
      type: object
      properties:
        rel:
          maxLength: 10
          minLength: 4
          pattern: ^(appendix|next|prev|self)$
          type: string
          description: |
            Meaning of the values [described at IANA](https://www.iana.org/assignments/link-relations/link-relations.xhtml)
              - *appendix* - refers to documents serving as an appendix to the current resource
              - *next* - context is a part of a series, and that the next in the series is the link target
              - *prev* - context is a part of a series, and that the previous in the series is the link target
              - *self* - URI of a resource or current page of the collection
        method:
          type: string
          description: HTTP method to interact with linked resource
          enum:
            - GET
            - PUT
        title:
          maxLength: 120
          minLength: 1
          pattern: ^[^\n]+$
          type: string
          description: Relation type with the target resource as human-readable text
        href:
          maxLength: 2000
          minLength: 1
          pattern: ^[^\n]+$
          type: string
          description: URL of linked resource
          format: uri-reference
      additionalProperties: false
      description: Reference to another resource
    Identifier:
      maxLength: 120
      minLength: 1
      pattern: ^[A-Za-z0-9-]{1,120}$
      type: string
      description: Unique identifier for a given resource.
    Inspectable:
      type: object
      properties:
        inspectableType:
          $ref: "#/components/schemas/InspectableType"
        inspectableRegistrationNumber:
          maxLength: 120
          minLength: 0
          pattern: ^[^\n]*$
          type: string
          description: Registration number of the asset
          readOnly: true
        inspectableName:
          maxLength: 120
          minLength: 0
          pattern: ^[^\n]*$
          type: string
          description: Name of the asset
          readOnly: true
        inspectableId:
          $ref: "#/components/schemas/InspectableId"
        inspectableIdentificationNumber:
          maxLength: 120
          minLength: 0
          pattern: ^[^\n]*$
          type: string
          description: Identification number of the asset
          readOnly: true
      additionalProperties: false
      description: Asset under inspection
    ReportType:
      type: string
      description: Type of the inspection report.
      enum:
        - PRE_TRIP
        - POST_TRIP
    InspectionType:
      type: string
      description: An inspectionType can be of an enum
      enum:
        - DVIR
    AnalyticsTraceEvent:
      title: Analytics trace event
      required:
        - name
        - timestamp
      type: object
      properties:
        name:
          maxLength: 20
          minLength: 18
          pattern: ^(inspection\.started|inspection\.submitted)$
          type: string
          description: Type of event related to the originating occurrence
        traceId:
          maxLength: 32
          minLength: 32
          pattern: ^[a-f0-9]{32}$
          type: string
          description: Unique identifier for a distributed trace the event is part of
          readOnly: true
        analyticsEventId:
          maxLength: 120
          minLength: 1
          pattern: ^[A-Za-z0-9-]{1,120}$
          type: string
          description: Unique identifier of an analytics event.
          readOnly: true
        timestamp:
          maxLength: 24
          minLength: 24
          type: string
          description: Time when the event occurred in RFC 3339-ISO8601 internet profile
          format: date-time
      additionalProperties: false
      description: >
        Named occurrence at an instant in time. It provides additional specifics
        about the occurrence.

        Examples of Events might include things like uncaught exceptions, button
        clicks, user logout, network connection severed, etc.
    InspectableType:
      type: string
      description: >
        Type of an inspectable asset.
          - VEHICLE when Vehicle is inspected
          - POWERED_ASSET when assets that have a power source is inspected
          - NON_POWERED_ASSET when assets that do not have a power source is inspected
      enum:
        - VEHICLE
        - POWERED_ASSET
        - NON_POWERED_ASSET
    InspectableId:
      maxLength: 120
      minLength: 1
      pattern: ^[A-Za-z0-9-]{1,120}$
      type: string
      description: Unique ID for an inspectable, i.e. asset/vehicle (asset ID/vehicle ID).
    InsightsVehicleInspectionHistoryResponse:
      title: InsightsVehicleInspectionHistoryResponse
      type: object
      properties:
        links:
          maxItems: 120
          minItems: 0
          uniqueItems: true
          type: array
          description: Related resources, pagination information
          items:
            $ref: "#/components/schemas/Link"
        items:
          maxItems: 100
          minItems: 0
          uniqueItems: true
          type: array
          description: A list of drill down vehicle inspection history.
          items:
            type: object
            properties:
              operators:
                maxItems: 100
                minItems: 1
                type: array
                description: Name of the driver(s)
                items:
                  maxLength: 120
                  minLength: 1
                  type: string
                  description: Name of a driver.
                  readOnly: true
              report:
                type: object
                properties:
                  template:
                    type: object
                    properties:
                      name:
                        maxLength: 60
                        minLength: 3
                        pattern: ^\S[^\n]+\S$
                        type: string
                        description: Unique name of the template used for inspection.
                    additionalProperties: false
                    description: Template information used for this inspection report
                  reportId:
                    $ref: "#/components/schemas/Identifier"
                  inspectable:
                    $ref: "#/components/schemas/Inspectable"
                  reportType:
                    $ref: "#/components/schemas/ReportType"
                  inspectionType:
                    $ref: "#/components/schemas/InspectionType"
                  analyticsEvents:
                    maxItems: 100
                    minItems: 0
                    type: array
                    description: Analytics events related to the report
                    items:
                      $ref: "#/components/schemas/AnalyticsTraceEvent"
                  relatedDefectsStatus:
                    maxLength: 120
                    minLength: 1
                    pattern: ^[^\n]+$
                    type: string
                    description: Status of all related critical defects for this inspection report
                    readOnly: true
                additionalProperties: false
                description: Inspection report details
              activityDate:
                maxLength: 10
                minLength: 10
                type: string
                description: Date of the vehicle activity
                format: date
            additionalProperties: false
            description: Individual vehicle inspection history item
      additionalProperties: false
      description: Response containing a list of vehicle inspection history items
```
