---
title: "RawEvent"
url: "https://developers.vzconnect.com/apis/video-event-api-1/versions/ca29ffe3-f50c-46b4-b1d1-213c2a218c4c/schemas/RawEvent"
---

> Full API specification: https://developers.vzconnect.com/apis/video-event-api-1/versions/ca29ffe3-f50c-46b4-b1d1-213c2a218c4c.md

# RawEvent

Input to add new event.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Video Event API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
components:
  schemas:
    VideoEventRawData:
      type: object
      properties:
        classification:
          type: integer
          description: Classification
          format: int32
          enum:
            - 0
            - 1
            - 2
            - 3
            - 4
        vtuEventType:
          maximum: 2147483647
          minimum: 0
          type: integer
          description: Event type
          format: int32
        thumbnailUrl:
          maxLength: 250
          minLength: 5
          pattern: ^https?:\/\/[^\s/$.?#].[^\s]*$
          type: string
          description: Event Thumbnail static URL
          example: https://www.example.com/thumbnail.jpg
        eventGenerationType:
          type: integer
          description: Event generation type
          format: int32
          enum:
            - 0
            - 1
            - 2
            - 3
            - 4
            - 5
        occurredAt:
          maxLength: 100
          minLength: 1
          type: string
          description: Date and time video event occurred at (UTC timestamp).
          format: date-time
        classificationThumbnailUrl:
          maxLength: 250
          minLength: 5
          pattern: ^https?:\/\/[^\s/$.?#].[^\s]*$
          type: string
          description: Event Classification Thumbnail URL.
          example: https://www.example.com/thumbnail.jpg
        startSpeed:
          maximum: 100000000
          minimum: 0
          pattern: ^-?\d+(\.\d{1,2})?$
          type: number
          description: Start Speed of the vehicle.
          format: float
        analysed:
          type: boolean
          description: Flag to indicate if the event has been analysed.
        vehicleTrackingId:
          maximum: 9223372036854776000
          minimum: 0
          type: integer
          description: The unique identifier of the vehicle tracking.
          format: int64
        cornering:
          type: integer
          description: Cornering
          format: int32
          enum:
            - 1
            - 2
        maxAcceleration:
          maximum: 100000000
          minimum: -100000000
          pattern: ^-?\d+(\.\d{1,2})?$
          type: number
          description: Acceleration of the vehicle.
          format: float
        driverId:
          maximum: 2147483647
          minimum: 0
          type: integer
          description: The unique identifier of the driver.
          format: int32
        requestId:
          maxLength: 50
          minLength: 1
          type: string
          description: Request ID
        vehicleId:
          maximum: 2147483647
          minimum: 0
          type: integer
          description: The unique identifier of the vehicle the camera is installed in.
          format: int32
        endSpeed:
          maximum: 100000000
          minimum: 0
          pattern: ^-?\d+(\.\d{1,2})?$
          type: number
          description: End Speed of the vehicle.
          format: float
        duration:
          maximum: 100000000
          minimum: 0
          pattern: ^-?\d+(\.\d{1,2})?$
          type: number
          description: Duration of the event.
          format: float
      additionalProperties: false
      description: Video Event Raw Data
    EventAddress:
      type: object
      properties:
        country:
          maxLength: 1000
          minLength: 0
          pattern: ^[a-zA-Z0-9\s\W]+$
          type: string
          description: Country of the address
          example: Ireland
        postalCode:
          maxLength: 1000
          minLength: 0
          pattern: ^[a-zA-Z0-9\s\W]+$
          type: string
          description: Postal Code of the address
          nullable: true
          example: "94568"
        city:
          maxLength: 1000
          minLength: 0
          pattern: ^[a-zA-Z0-9\s\W]+$
          type: string
          description: City of the address
          example: Dublin
        longitude:
          maximum: 180
          minimum: -180
          type: number
          description: Longitude of the address
          format: double
          example: -6.26031
        addressLine1:
          maxLength: 1000
          minLength: 0
          pattern: ^[a-zA-Z0-9\s\W]+$
          type: string
          description: Address Line 1
          example: 123 Main St
        latitude:
          maximum: 90
          minimum: -90
          type: number
          description: Latitude of the address
          format: double
          example: 53.349804
        state:
          maxLength: 1000
          minLength: 0
          pattern: ^[a-zA-Z0-9\s\W]+$
          type: string
          description: State of the address
          example: CA
      additionalProperties: false
      description: Address of the event
      readOnly: false
    VideoEventVehicleRawData:
      type: object
      properties:
        vehicleLabel:
          maxLength: 1000
          minLength: 0
          pattern: ^[a-zA-Z0-9\s\W]+$
          type: string
          description: The vehicle label.
          example: vehicle12
        vehicleId:
          maxLength: 100
          minLength: 1
          pattern: ^[1-9]\d*$
          type: string
          description: Unique identifier of the vehicle.
          example: "123456"
        clientVehicleId:
          maxLength: 1000
          minLength: 0
          pattern: ^[a-zA-Z0-9\s\W]+$
          type: string
          description: The vehicle id.
          example: testId123123
        registrationNumber:
          maxLength: 1000
          minLength: 0
          pattern: ^[a-zA-Z0-9\s\W]+$
          type: string
          description: The vehicle registration number.
          example: 123VE123
        vehicleTrackingId:
          maximum: 9223372036854776000
          minimum: 0
          type: integer
          description: The unique identifier of the vehicle tracking.
          format: int64
      additionalProperties: false
      description: Vehicle data of the event
    VideoEventTriggerRawData:
      type: object
      properties:
        triggerData:
          type: object
          additionalProperties: true
          description: MetaData for the tag
          example: "{StartSecond, EndSecond}"
        triggerTypeId:
          maximum: 2147483647
          minimum: 0
          type: integer
          description: Trigger type id
          format: int32
          nullable: false
        occurredAt:
          maxLength: 100
          minLength: 1
          type: string
          description: Date and time trigger occurred at (UTC timestamp).
          format: date-time
          nullable: false
      additionalProperties: false
    VideoEventTrackingRawData:
      type: object
      properties:
        longitude:
          maximum: 180
          minimum: -180
          type: number
          description: Longitude of the event
          format: double
          example: -6.26031
        latitude:
          maximum: 90
          minimum: -90
          type: number
          description: Latitude of the event
          format: double
          example: 53.349804
        gpsUpdatedAt:
          maxLength: 100
          type: string
          description: GPS Update (UTC timestamp)
          format: date-time
        speed:
          maximum: 10000000
          minimum: 0
          type: number
          description: Speed of the vehicle
          format: double
        gpsDataItem:
          maxLength: 1000
          minLength: 0
          type: string
          description: Array of gps data items in Json format
      additionalProperties: false
      description: Tracking data of the event
    VideoEventDriverRawData:
      type: object
      properties:
        firstName:
          maxLength: 1000
          minLength: 0
          pattern: ^[A-Za-zÀ-ÖØ-öø-ÿ' -]+$
          type: string
          description: The first name of the driver.
          example: John
        clientDriverId:
          maxLength: 1000
          minLength: 0
          pattern: ^[a-zA-Z0-9\s\W]+$
          type: string
          description: The driver id.
          example: testId123123
        surname:
          maxLength: 1000
          minLength: 0
          pattern: ^[A-Za-zÀ-ÖØ-öø-ÿ' -]+$
          type: string
          description: The last name of the driver.
          example: Doe
        email:
          maxLength: 1000
          minLength: 0
          pattern: ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
          type: string
          description: The email of the driver.
          example: driver@company.domain
        driverId:
          maxLength: 100
          minLength: 1
          pattern: ^[1-9]\d*$
          type: string
          description: Unique identifier of the driver.
          example: "123456"
      additionalProperties: false
      description: Driver data of the event
    VideoEventTagRawData:
      type: object
      properties:
        name:
          maxLength: 50
          minLength: 1
          pattern: ^[a-zA-Z0-9\s\W]+$
          type: string
          description: Tag name
          nullable: false
        value:
          maxLength: 50
          minLength: 1
          pattern: ^[a-zA-Z0-9\s\W]+$
          type: string
          description: Tag value
          nullable: false
        metadata:
          type: object
          additionalProperties: true
          description: MetaData for the tag
          nullable: true
          example: "{StartSecond, EndSecond}"
      additionalProperties: false
    VideoRawData:
      type: object
      properties:
        analysedAt:
          maxLength: 100
          type: string
          description: Video analysis date.
          format: date-time
          nullable: true
        thumbnailUrl:
          maxLength: 1000
          minLength: 0
          pattern: ^https?:\/\/[^\s/$.?#].[^\s]*$
          type: string
          description: Main video thumbnail URL
          nullable: true
          example: https://www.example.com/thumbnail.jpg
        startedAt:
          maxLength: 100
          type: string
          description: Video start time (UTC timestamp)
          format: date-time
          nullable: false
        expiresAt:
          maxLength: 100
          type: string
          description: Video expiration date
          format: date-time
          nullable: true
        videoId:
          maxLength: 100
          minLength: 1
          pattern: ^[1-9]\d*$
          type: string
          description: Unique identifier of the footage
          example: "123456"
        channelNumber:
          maximum: 2147483647
          minimum: 0
          type: integer
          description: Channel Number
          format: int32
          nullable: false
        controlUnitId:
          maximum: 2147483647
          minimum: 0
          type: integer
          description: Control Unit Id
          format: int32
          nullable: false
        cameraId:
          maximum: 2147483647
          minimum: 0
          type: integer
          description: Camera Id
          format: int32
          nullable: false
        videoUrl:
          maxLength: 1000
          minLength: 0
          pattern: ^https?:\/\/[^\s/$.?#].[^\s]*$
          type: string
          description: Main video URL
          nullable: true
          example: https://www.example.mp4
        analysed:
          type: boolean
          description: Indicate whether video analyzed or not.
          nullable: true
        assignedFunction:
          maxLength: 50
          minLength: 1
          type: string
          description: Device function.
          nullable: false
          example: ROAD
          enum:
            - ROAD
            - DRIVER
            - DRIVER_SIDE
            - PASSENGER_SIDE
            - REAR
            - CARGO
            - OTHER
        processedAt:
          maxLength: 100
          type: string
          description: Video process date
          format: date-time
          nullable: true
        classification:
          type: integer
          description: Classification
          format: int32
          nullable: true
          enum:
            - 0
            - 1
            - 2
            - 3
            - 4
        endedAt:
          maxLength: 100
          type: string
          description: Video end time (UTC timestamp)
          format: date-time
          nullable: false
      additionalProperties: false
    RawEvent:
      type: object
      properties:
        eventRawData:
          $ref: "#/components/schemas/VideoEventRawData"
        eventAddressRawData:
          $ref: "#/components/schemas/EventAddress"
        eventVehicleRawData:
          $ref: "#/components/schemas/VideoEventVehicleRawData"
        eventTriggerRawData:
          maxItems: 20
          minItems: 1
          type: array
          description: triggers of the event
          items:
            $ref: "#/components/schemas/VideoEventTriggerRawData"
        eventTrackingRawData:
          $ref: "#/components/schemas/VideoEventTrackingRawData"
        eventDriverRawData:
          $ref: "#/components/schemas/VideoEventDriverRawData"
        eventTagRawData:
          maxItems: 20
          minItems: 1
          type: array
          description: tags of the event
          items:
            $ref: "#/components/schemas/VideoEventTagRawData"
        videoRawData:
          maxItems: 20
          minItems: 1
          type: array
          description: videos of the event
          items:
            $ref: "#/components/schemas/VideoRawData"
      additionalProperties: false
      description: Input to add new event.
      writeOnly: true
```
