---
title: "Get all reports"
url: "https://developers.vzconnect.com/apis/fleet-inspections-api/versions/e4689b0c-c26d-40d6-b023-5303083c4a3f/operations/reports-get"
---

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

# Get all reports

`GET` `/inspections/reports`

Operation ID: `reports-get`

Returns all the inspection reports in an account. It is possible to retrieve additional information by including the following values into *embed* query parameter: - *attachments* - to include detailed attachments linked to report - *analyticsEvents* - to access analytics events related to report

## Query parameters

- `page_token` (string, optional) - Identifies a bookmark for the next page of results.
- `inspectable_id` (string, optional) - Unique ID for an inspectable, i.e. asset/vehicle (asset ID/vehicle ID). Required if *inspectable_type* is specified.
- `inspectable_type` (string, optional) - Type of an inspectable asset. Required if *inspectable_id* is specified.
- `related_defects_status` (array, optional) - Filter by the aggregated status of related defects.
- `q` (string, optional) - Filter for inspection history by input text search vehicle or driver name.
- `start_submitted_at` (string, date-time, optional) - Filter for inspection history by a date range of when the inspection was created start date.
- `end_submitted_at` (string, date-time, optional) - Filter for inspection history by a date range of when the inspection was created end date.
- `embed` (array, optional) - Field name expressions to expand or embed sub-resources within representations.
- `inspectable_group` (object, optional) - Dictionary of up to 50 inspectable group keys to selection criteria. Each key is in the form `{groupId}.{include|exclude}.{inspectableType}` (e.g., `782346.include.VEHICLE`). Each value is a comma-separated list of inspectable IDs or `ALL`. For accounts without groups, use the key `NONE.include.{inspectableType}`. The total number of inspectable IDs in all `include` and all `exclude` values across all groups must not exceed 50. If an inspectable ID appears in both `include` and `exclude` for the same group and inspectable type, it will be excluded. Example: inspectable_group[782346.include.VEHICLE]=T7nMzcDXa7U4YU8D,RsBHkJkZ86F1jUNT &inspectable_group[123456.exclude.VEHICLE]=kmG4GETs1UJWYAy2 &inspectable_group[568794.include.VEHICLE]=ALL &inspectable_group[NONE.include.VEHICLE]=TsBHkJkZ86F1jKRN,z8L68MGXzCGx32sa,rUs4WqtgSEJYMvuT

## Responses

- `200` - Ok
- `400` - Bad Request
- `401` - Unauthorized
- `403` - Forbidden
- `404` - Not Found
- `429` - Too Many Requests
- `default` - Internal Server Error

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Fleet Inspections API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /inspections/reports:
    get:
      tags:
        - Fleet Inspections API
      summary: Get all reports
      description: >-
        Returns all the inspection reports in an account.


        It is possible to retrieve additional information by including the
        following values into *embed* query parameter:
          - *attachments* - to include detailed attachments linked to report
          - *analyticsEvents* - to access analytics events related to report
      operationId: reports-get
      parameters:
        - $ref: "#/components/parameters/QueryPageToken"
        - name: inspectable_id
          in: query
          description: Unique ID for an inspectable, i.e. asset/vehicle (asset ID/vehicle
            ID). Required if *inspectable_type* is specified.
          required: false
          schema:
            $ref: "#/components/schemas/InspectableId"
        - name: inspectable_type
          in: query
          description: Type of an inspectable asset. Required if *inspectable_id* is
            specified.
          required: false
          schema:
            $ref: "#/components/schemas/InspectableType"
        - name: related_defects_status
          in: query
          description: Filter by the aggregated status of related defects.
          required: false
          style: form
          explode: false
          schema:
            maxItems: 4
            minItems: 1
            uniqueItems: true
            type: array
            description: The overall status of all related defects.
            items:
              $ref: "#/components/schemas/InspectionStatus"
        - name: q
          in: query
          description: Filter for inspection history by input text search vehicle or
            driver name.
          required: false
          schema:
            maxLength: 255
            minLength: 3
            pattern: ^[ a-zA-Z0-9-]{3,255}$
            type: string
        - name: start_submitted_at
          in: query
          description: Filter for inspection history by a date range of when the
            inspection was created start date.
          required: false
          schema:
            maxLength: 24
            minLength: 24
            type: string
            format: date-time
        - name: end_submitted_at
          in: query
          description: Filter for inspection history by a date range of when the
            inspection was created end date.
          required: false
          schema:
            maxLength: 24
            minLength: 24
            type: string
            format: date-time
        - name: embed
          in: query
          description: Field name expressions to expand or embed sub-resources within
            representations.
          required: false
          style: form
          explode: false
          schema:
            maxItems: 2
            minItems: 0
            uniqueItems: true
            type: array
            items:
              maxLength: 200
              minLength: 1
              pattern: ^(attachments|analyticsEvents)$
              type: string
        - name: inspectable_group
          in: query
          description: >-
            Dictionary of up to 50 inspectable group keys to selection criteria.

            Each key is in the form
            `{groupId}.{include|exclude}.{inspectableType}` (e.g.,
            `782346.include.VEHICLE`).

            Each value is a comma-separated list of inspectable IDs or `ALL`.

            For accounts without groups, use the key
            `NONE.include.{inspectableType}`.

            The total number of inspectable IDs in all `include` and all
            `exclude` values across all groups must not exceed 50.

            If an inspectable ID appears in both `include` and `exclude` for the
            same group and inspectable type, it will be excluded.

            Example:
              inspectable_group[782346.include.VEHICLE]=T7nMzcDXa7U4YU8D,RsBHkJkZ86F1jUNT
              &inspectable_group[123456.exclude.VEHICLE]=kmG4GETs1UJWYAy2
              &inspectable_group[568794.include.VEHICLE]=ALL
              &inspectable_group[NONE.include.VEHICLE]=TsBHkJkZ86F1jKRN,z8L68MGXzCGx32sa,rUs4WqtgSEJYMvuT
          required: false
          explode: true
          schema:
            maxProperties: 50
            minProperties: 1
            type: object
            additionalProperties: false
            description: Selection criteria for inspectables within a group
      responses:
        "200":
          description: Ok
          content:
            application/json:
              schema:
                type: object
                properties:
                  links:
                    maxItems: 100
                    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 all the reports
                    items:
                      $ref: "#/components/schemas/Report"
                additionalProperties: false
              examples:
                Nothing found:
                  value:
                    links:
                      - method: GET
                        rel: self
                        href: /reports?page_token=Ly87MJCYGG4rM4bwTJfp
                    items: []
                List of reports:
                  value:
                    links:
                      - method: GET
                        rel: self
                        href: /reports?page_token=Ly87MJCYGG4rM4bwTJfp
                      - method: GET
                        rel: prev
                        href: /reports?page_token=RA5Cb1Wc7NwBe972DwAG
                      - method: GET
                        rel: next
                        href: /reports?page_token=Y56ZYw5ZGBuH5ky2grrE
                    items:
                      - submittedAt: 2024-03-26T21:14:19.749Z
                        templateId: wpZ1FS6r5Px1GSc6
                        inspectable:
                          inspectableType: VEHICLE
                          inspectableRegistrationNumber: 191D2234
                          inspectableName: Skoda
                          inspectableId: T7nMzcDXa7U4YU8D
                          inspectableIdentificationNumber: BOW3658575
                        relatedDefectsStatus: FAILED
                        analyticsEvents: []
                        reportType: PRE_TRIP
                        reportId: DpW4kx5V1GXgmP2Q
                        results: []
                        defects:
                          - linkedAt: 2024-04-16T12:07:02.229Z
                            defectId: ai2ll3069rx0xz26
                          - linkedAt: 2024-04-16T12:07:02.229Z
                            defectId: t98yrewtug0rmbia
                        attachments:
                          - linkedAt: 2024-04-16T12:07:02.229Z
                            attachmentId: 1FDgE6LtYEYJdMyY
                        comment: Vehicle is covered in mud
                        operator:
                          operatorType: DRIVER
                          operatorName: Mike
                          operatorId: MH5wPMq6uUBCwK2L
                        links:
                          - method: GET
                            rel: self
                            href: /reports/DpW4kx5V1GXgmP2Q
                        inspectionType: DVIR
                List of reports with embedded report attachments and analyticsEvents:
                  value:
                    links:
                      - method: GET
                        rel: self
                        href: /reports?page_token=Ly87MJCYGG4rM4bwTJfp
                      - method: GET
                        rel: prev
                        href: /reports?page_token=RA5Cb1Wc7NwBe972DwAG
                      - method: GET
                        rel: next
                        href: /reports?page_token=Y56ZYw5ZGBuH5ky2grrE
                    items:
                      - submittedAt: 2024-03-26T21:14:19.749Z
                        templateId: wpZ1FS6r5Px1GSc6
                        inspectable:
                          inspectableType: VEHICLE
                          inspectableRegistrationNumber: 191D2234
                          inspectableName: Skoda
                          inspectableId: T7nMzcDXa7U4YU8D
                          inspectableIdentificationNumber: BOW3658575
                        relatedDefectsStatus: FAILED
                        analyticsEvents:
                          - name: inspection.submitted
                            traceId: 97c6c24428c142feafc7503b0a80d049
                            analyticsEventId: jruKC7tySF1YPfVK
                            timestamp: 2024-11-13T13:40:19.749Z
                          - name: inspection.started
                            traceId: 97c6c24428c142feafc7503b0a80d049
                            analyticsEventId: dNvq9u9UXTMgX6GQ
                            timestamp: 2024-11-13T13:32:01.587Z
                        reportType: PRE_TRIP
                        reportId: DpW4kx5V1GXgmP2Q
                        results: []
                        defects:
                          - linkedAt: 2024-04-16T12:07:02.229Z
                            defectId: dpz18jbnmgycbgvn
                          - linkedAt: 2024-04-16T12:07:02.229Z
                            defectId: sbdbimlxt5v3gmg4
                        attachments:
                          - data: []
                            name: Signing report
                            attachmentId: 1FDgE6LtYEYJdMyY
                            linkedAt: 2024-04-16T12:07:02.229Z
                            author:
                              name: John Doe
                              authorId: GdUjjWFYbeLnC4YL
                              authorType: OPERATOR
                            attachmentType: SIGNATURE
                            links:
                              - method: GET
                                rel: self
                                href: /attachments/1FDgE6LtYEYJdMyY
                        comment: Vehicle is covered in mud
                        operator:
                          operatorType: DRIVER
                          operatorName: Mike
                          operatorId: MH5wPMq6uUBCwK2L
                        links:
                          - method: GET
                            rel: self
                            href: /reports/DpW4kx5V1GXgmP2Q
                        inspectionType: DVIR
        "400":
          $ref: "#/components/responses/BadRequest"
          description: Bad request. The request is not valid.
        "401":
          $ref: "#/components/responses/Unauthorized"
          description: Unauthorized. The authorization token is missing or not valid.
        "403":
          $ref: "#/components/responses/Forbidden"
          description: Forbidden. The caller is not allowed to access this resource.
        "404":
          $ref: "#/components/responses/NotFound"
          description: Not found.
        "429":
          $ref: "#/components/responses/TooManyRequests"
          description: Too many requests. The rate limit has been exceeded.
        default:
          $ref: "#/components/responses/InternalServerError"
          description: An unexpected error occurred.
      deprecated: false
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/inspections/reports/?$
components:
  parameters:
    QueryPageToken:
      name: page_token
      in: query
      description: Identifies a bookmark for the next page of results.
      required: false
      schema:
        maxLength: 200
        minLength: 1
        pattern: ^[.+\/=A-Za-z0-9]+$
        type: string
  schemas:
    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).
    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
    InspectionStatus:
      type: string
      description: >
        Overall status of all related CRITICAL defects. Calculated only when
        *relatedDefects* are included into the response.
          - PASSED when no CRITICAL defects were reported
          - FAILED when at least one reported CRITICAL defect is PENDING
          - RESOLVED when all CRITICAL defects are FIXED or CERTIFIED and at least one has status FIXED
          - CERTIFIED when all reported CRITICAL defects are CERTIFIED
      enum:
        - PASSED
        - FAILED
        - RESOLVED
        - CERTIFIED
    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
    Report:
      title: Report
      required:
        - inspectable
        - inspectionType
        - operator
        - reportType
        - results
        - submittedAt
        - templateId
      type: object
      properties:
        submittedAt:
          maxLength: 24
          minLength: 24
          type: string
          description: Report submitted time as UTC in RFC 3339-ISO8601 internet profile
          format: date-time
        templateId:
          $ref: "#/components/schemas/Identifier"
        inspectable:
          $ref: "#/components/schemas/Inspectable"
        relatedDefectsStatus:
          allOf:
            - $ref: "#/components/schemas/InspectionStatus"
            - maxLength: 120
              minLength: 1
              pattern: ^[^\n]+$
              type: string
              readOnly: true
        analyticsEvents:
          maxItems: 100
          minItems: 0
          type: array
          description: Analytics events related to the report
          items:
            $ref: "#/components/schemas/AnalyticsTraceEvent"
        reportType:
          $ref: "#/components/schemas/ReportType"
        reportId:
          maxLength: 120
          minLength: 1
          pattern: ^[A-Za-z0-9-]{1,120}$
          type: string
          description: Unique identifier for a report.
          readOnly: true
        results:
          maxItems: 100
          minItems: 0
          uniqueItems: true
          type: array
          description: Outcomes of inspection items
          items:
            $ref: "#/components/schemas/ReportItemResult"
        defects:
          maxItems: 100
          minItems: 0
          uniqueItems: true
          type: array
          description: Defects in the report outside of *results*
          items:
            type: object
            properties:
              linkedAt:
                maxLength: 24
                minLength: 24
                type: string
                description: Link creation time as UTC in RFC 3339-ISO8601 internet profile
                format: date-time
                readOnly: true
              defectId:
                $ref: "#/components/schemas/Identifier"
            additionalProperties: false
            description: Defects related to the report outside of *results*
        attachments:
          maxItems: 100
          minItems: 0
          uniqueItems: true
          type: array
          description: Attachments in the report
          items:
            oneOf:
              - allOf:
                  - $ref: "#/components/schemas/Attachment"
                  - type: object
                    properties:
                      linkedAt:
                        maxLength: 24
                        minLength: 24
                        type: string
                        description: Link creation time as UTC in RFC 3339-ISO8601 internet profile
                        format: date-time
                        readOnly: true
                    additionalProperties: true
                    description: Attachment related to the report
                    readOnly: true
              - type: object
                properties:
                  linkedAt:
                    maxLength: 24
                    minLength: 24
                    type: string
                    description: Link creation time as UTC in RFC 3339-ISO8601 internet profile
                    format: date-time
                    readOnly: true
                  attachmentId:
                    $ref: "#/components/schemas/Identifier"
                additionalProperties: true
                description: Attachment related to the report
        comment:
          maxLength: 2000
          minLength: 0
          pattern: ^[^\n]*$
          type: string
          description: Notes about the report
          nullable: true
        operator:
          $ref: "#/components/schemas/Operator"
        links:
          maxItems: 100
          minItems: 0
          uniqueItems: true
          type: array
          description: Related resources
          readOnly: true
          items:
            $ref: "#/components/schemas/Link"
        inspectionType:
          $ref: "#/components/schemas/InspectionType"
      additionalProperties: false
      description: Inspection details of a vehicle or other asset
    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
    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.
    ReportType:
      type: string
      description: Type of the inspection report.
      enum:
        - PRE_TRIP
        - POST_TRIP
    ReportItemResult:
      title: Report Item Result
      required:
        - resultType
        - templateItemId
      type: object
      properties:
        templateItemId:
          $ref: "#/components/schemas/Identifier"
        attachments:
          maxItems: 1
          minItems: 0
          uniqueItems: true
          type: array
          description: Attachments for the report item result
          items:
            type: object
            properties:
              attachmentId:
                $ref: "#/components/schemas/Identifier"
            description: Attachment related to the report item result
        resultType:
          type: string
          description: Result of the Report Item.
          enum:
            - OK
            - DEFECT
        resultId:
          maxLength: 120
          minLength: 1
          pattern: ^[A-Za-z0-9-]{1,120}$
          type: string
          description: Unique identifier of a report which the Item belongs to.
          readOnly: true
        resultValue:
          maxLength: 256
          minLength: 0
          pattern: ^[^\n]*$
          type: string
          description: Result outcome, depends on the Report Item type. Not applicable to
            CHECK items.
        defects:
          maxItems: 100
          minItems: 0
          uniqueItems: true
          type: array
          description: Defects raised for a Report Item
          items:
            type: object
            properties:
              linkedAt:
                maxLength: 24
                minLength: 24
                type: string
                description: Link creation time as UTC in RFC 3339-ISO8601 internet profile
                format: date-time
                readOnly: true
              defectId:
                $ref: "#/components/schemas/Identifier"
            additionalProperties: false
            description: Defect related to the report item
      additionalProperties: false
      description: Template Item result within a given report.
    Attachment:
      title: Attachment
      required:
        - attachmentType
        - author
      type: object
      properties:
        data:
          maxItems: 100
          minItems: 0
          uniqueItems: true
          type: array
          description: Various media for an attachment
          readOnly: true
          items:
            type: object
            properties:
              rel:
                maxLength: 120
                minLength: 1
                pattern: ^(enclosure)$
                type: string
                description: |
                  Meaning of the values [described at IANA](https://www.iana.org/assignments/link-relations/link-relations.xhtml)
                    - *enclosure* - media, typically photo or document related to the resource, potentially large and might require special handling
              href:
                maxLength: 2000
                minLength: 1
                pattern: ^[^\n]+$
                type: string
                description: URL of relevant data
                format: uri
              method:
                type: string
                description: HTTP method to interact with data
                enum:
                  - GET
                  - PUT
              length:
                maximum: 6291456
                minimum: 1
                type: integer
                description: Size of a data referenced in *href* in bytes
                format: int32
              tags:
                maxItems: 100
                minItems: 0
                uniqueItems: true
                type: array
                description: Labels and attributes of a data enclosure
                readOnly: true
                items:
                  maxLength: 120
                  minLength: 1
                  pattern: ^[a-z0-9]+$
                  type: string
                  description: Individual label or attribute of a data enclosure
                  readOnly: true
            additionalProperties: false
        name:
          maxLength: 120
          minLength: 1
          pattern: ^[^\n]+$
          type: string
          description: Name of an attachment.
          nullable: true
        comment:
          maxLength: 2000
          minLength: 0
          pattern: ^[^\n]*$
          type: string
          description: Attachment details
          nullable: true
        enclosure:
          required:
            - contentLength
            - contentType
          type: object
          properties:
            contentLength:
              maximum: 6291456
              minimum: 1
              type: integer
              description: Size of media in bytes
              format: int32
            contentType:
              maxLength: 120
              minLength: 3
              pattern: ^(image\/jpeg|image\/png)$
              type: string
              description: Media type specifying format of the contents. See [RFC
                9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-content-type)
                for details
          additionalProperties: false
          description: Related media, typically photo or document, potentially large and
            thus requiring separate upload facility
          writeOnly: true
        attachmentId:
          maxLength: 120
          minLength: 1
          pattern: ^[A-Za-z0-9-]{1,120}$
          type: string
          description: Unique identifier of an attachment.
          readOnly: true
        author:
          required:
            - authorType
          type: object
          properties:
            name:
              maxLength: 120
              minLength: 1
              pattern: ^[^\n]+$
              type: string
              description: Name of the author created an attachment.
              readOnly: true
            authorId:
              maxLength: 120
              minLength: 1
              pattern: ^[A-Za-z0-9-]{1,120}$
              type: string
              description: Unique identifier of the author created an attachment.
              readOnly: true
            authorType:
              type: string
              description: Person that created an attachment
              enum:
                - OPERATOR
                - COMPLIANCE_MANAGER
          additionalProperties: false
          description: Person that created an attachment
        attachmentType:
          $ref: "#/components/schemas/AttachmentType"
        links:
          maxItems: 100
          minItems: 0
          uniqueItems: true
          type: array
          description: Related resources
          readOnly: true
          items:
            $ref: "#/components/schemas/Link"
      additionalProperties: true
      description: |
        Inspection attachment: photo, signature, document, comment.

        *name* would be used as file name if enclosure is uploaded.
    Operator:
      type: object
      properties:
        operatorType:
          $ref: "#/components/schemas/OperatorType"
        operatorName:
          maxLength: 120
          minLength: 1
          pattern: ^[^\n]+$
          type: string
          description: Name of an operator.
          readOnly: true
        operatorId:
          $ref: "#/components/schemas/Identifier"
      additionalProperties: false
      description: Person performing an inspection
    InspectionType:
      type: string
      description: An inspectionType can be of an enum
      enum:
        - DVIR
    ProblemJson:
      title: ProblemJson
      type: object
      properties:
        type:
          maxLength: 2000
          minLength: 0
          pattern: ^[^\n]*$
          type: string
          description: A URI reference that identifies the problem type.
          format: uri
        detail:
          maxLength: 2000
          minLength: 0
          pattern: ^[^\n]*$
          type: string
          description: A human-readable explanation specific to this occurrence of the
            problem.
        status:
          maximum: 599
          minimum: 300
          type: integer
          description: The HTTP status code generated by the origin server for this
            occurrence of the problem.
          format: int32
        errors:
          maxItems: 120
          minItems: 1
          uniqueItems: true
          type: array
          description: An extension that contains a list of individual error occurrences
            found, with details and a pointer to the location of each. Use this
            extension to convey more than one errors of the same type.
          items:
            type: object
            properties:
              debugId:
                maxLength: 120
                minLength: 0
                pattern: ^[^\n]*$
                type: string
                description: A unique error identifier string generated on the service-side and
                  logged for correlation purposes.
              pointer:
                maxLength: 120
                minLength: 0
                pattern: ^(\/[^\n]+)*$
                type: string
                description: A pointer to locate the problem within the request's content using
                  a [JSON Pointer](https://www.rfc-editor.org/info/rfc6901).
                  This extension is only applicable in case of 4xx range of
                  errors.
              detail:
                maxLength: 2000
                minLength: 0
                pattern: ^[^\n]*$
                type: string
                description: A human-readable explanation specific to this occurrence of the
                  problem.
            additionalProperties: false
        instance:
          maxLength: 2000
          minLength: 0
          pattern: ^[^\n]*$
          type: string
          description: A URI reference that identifies the specific occurrence of the
            problem. It may or may not yield further information if
            dereferenced.
          format: uri
        debugId:
          maxLength: 120
          minLength: 0
          pattern: ^[^\n]*$
          type: string
          description: A unique error identifier string generated on the service-side and
            logged for correlation purposes.
        pointer:
          maxLength: 120
          minLength: 0
          pattern: ^(\/[^\n]+)*$
          type: string
          description: A pointer to locate the problem within the request's content using
            a [JSON Pointer](https://www.rfc-editor.org/info/rfc6901). This
            extension is only applicable in case of 4xx range of errors.
        title:
          maxLength: 2000
          minLength: 0
          pattern: ^[^\n]*$
          type: string
          description: A short, human-readable summary of the problem type.
      additionalProperties: false
      description: JSON Schema for HTTP Problems as defined by RFC 9457
    AttachmentType:
      type: string
      description: Type of attachment, example Signature, Comment, Photo
      enum:
        - SIGNATURE
        - COMMENT
        - PHOTO
    OperatorType:
      type: string
      description: Role of a person who prepared the report
      enum:
        - DRIVER
  responses:
    BadRequest:
      description: Bad Request
      content:
        application/problem+json:
          schema:
            $ref: "#/components/schemas/ProblemJson"
    Unauthorized:
      description: Unauthorized
      content:
        application/problem+json:
          schema:
            $ref: "#/components/schemas/ProblemJson"
    Forbidden:
      description: Forbidden
      content:
        application/problem+json:
          schema:
            $ref: "#/components/schemas/ProblemJson"
    NotFound:
      description: Not Found
      content:
        application/problem+json:
          schema:
            $ref: "#/components/schemas/ProblemJson"
    TooManyRequests:
      description: Too Many Requests
      content:
        application/problem+json:
          schema:
            $ref: "#/components/schemas/ProblemJson"
    InternalServerError:
      description: Internal Server Error
      content:
        application/problem+json:
          schema:
            $ref: "#/components/schemas/ProblemJson"
```
