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

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

# Get the current vehicle assignment for a driver.

`GET` `/da/v1/driverassignments/drivers/{drivernumber}/currentassignment`

Operation ID: `getDriverCurrentAssignment`

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

## Path parameters

- `drivernumber` (string, required) - Driver Number is the unique identifier for Drivers created within REVEAL.

## Responses

- `200` - Successfully retrieved the driver's current vehicle 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 Driver Number does not exist, the driver has no current assignment, or the assigned vehicle has no Vehicle 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/drivers/{drivernumber}/currentassignment:
    get:
      summary: Get the current vehicle assignment for a driver.
      description: Returns the Driver Number's current vehicle assignment. The method
        will only return the current vehicle assignment for the Driver Number
        specified. The current vehicle assignment and the start date and time of
        the assignment will be included.
      operationId: getDriverCurrentAssignment
      tags:
        - Driver Assignment API
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/da/v1/driverassignments/drivers/[^/]+/currentassignment/?$
      parameters:
        - name: drivernumber
          in: path
          required: true
          description: Driver Number is the unique identifier for Drivers created within
            REVEAL.
          schema:
            type: string
            example: "100096"
      responses:
        "200":
          description: Successfully retrieved the driver's current vehicle 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 Driver Number does not exist, the driver has no
            current assignment, or the assigned vehicle has no Vehicle 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
```
