---
title: "Get the current driver assignment for a vehicle."
url: "https://developers.vzconnect.com/apis/driver-assignment-api-v1/versions/200c173b-213b-4994-8393-3354daf0b668/operations/getVehicleCurrentAssignment"
---

> Full API specification: https://developers.vzconnect.com/apis/driver-assignment-api-v1/versions/200c173b-213b-4994-8393-3354daf0b668.md

# Get the current driver assignment for a vehicle.

`GET` `/da/v1/driverassignments/vehicles/{vehiclenumber}/currentassignment`

Operation ID: `getVehicleCurrentAssignment`

Returns the Vehicle Number's current driver assignment. The method will only return the current driver assignment for the Vehicle Number specified. The current driver assignment and the start date and time of the assignment will be included.

## Path parameters

- `vehiclenumber` (string, required) - Vehicle Number is the unique identifier for Vehicles created within REVEAL.

## Responses

- `200` - Successfully retrieved the vehicle's current driver assignment.
- `400` - Bad request. The Authorization header is missing or malformed.
- `401` - Unauthorized. The token is invalid or expired, or does not belong to an integration user.
- `404` - Not found. The Vehicle Number does not exist, the vehicle has no current assignment, or the assigned driver has no Driver Number in REVEAL. The response body is a JSON string containing the reason.
- `500` - Internal server error.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Driver Assignment API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /da/v1/driverassignments/vehicles/{vehiclenumber}/currentassignment:
    get:
      summary: Get the current driver assignment for a vehicle.
      description: Returns the Vehicle Number's current driver assignment. The method
        will only return the current driver assignment for the Vehicle Number
        specified. The current driver assignment and the start date and time of
        the assignment will be included.
      operationId: getVehicleCurrentAssignment
      tags:
        - Driver Assignment API
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/da/v1/driverassignments/vehicles/[^/]+/currentassignment/?$
      parameters:
        - name: vehiclenumber
          in: path
          required: true
          description: Vehicle Number is the unique identifier for Vehicles created within
            REVEAL.
          schema:
            type: string
            example: "300456"
      responses:
        "200":
          description: Successfully retrieved the vehicle's current driver assignment.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CurrentAssignment"
              example:
                DriverNumber: "100096"
                VehicleNumber: "300456"
                StartDateUTC: 2016-08-08T17:51:04.05
        "400":
          description: Bad request. The Authorization header is missing or malformed.
          content:
            application/json: {}
        "401":
          description: Unauthorized. The token is invalid or expired, or does not belong
            to an integration user.
          content:
            application/json: {}
        "404":
          description: Not found. The Vehicle Number does not exist, the vehicle has no
            current assignment, or the assigned driver has no Driver Number in
            REVEAL. The response body is a JSON string containing the reason.
          content:
            application/json:
              schema:
                type: string
        "500":
          description: Internal server error.
          content:
            application/json: {}
components:
  schemas:
    CurrentAssignment:
      type: object
      description: A driver to vehicle assignment and the start date/time of that
        assignment.
      required:
        - DriverNumber
        - VehicleNumber
      properties:
        DriverNumber:
          type: string
          description: Driver Number is the unique identifier for Drivers created within
            REVEAL.
          example: "100096"
        VehicleNumber:
          type: string
          description: Vehicle Number is the unique identifier for Vehicles created within
            REVEAL.
          example: "300456"
        StartDateUTC:
          type: string
          format: date-time
          description: Start Date UTC will reflect the time of the driver to vehicle
            assignment that is returned.
          example: 2016-08-08T17:51:04.05
        EndDateUTC:
          type: string
          format: date-time
          nullable: true
          description: End date and time (UTC) of the assignment. Omitted when the
            assignment has no end date.
          example: 2016-08-09T17:51:04.05
```
