---
title: "Create a driver-to-vehicle assignment."
url: "https://developers.vzconnect.com/apis/driver-assignment-api-v1/versions/200c173b-213b-4994-8393-3354daf0b668/operations/createDriverAssignment"
---

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

# Create a driver-to-vehicle assignment.

`POST` `/da/v1/driverassignments`

Operation ID: `createDriverAssignment`

The POST Driver Assignment method enables integration users to link drivers to vehicles within a REVEAL account. The body of the request should contain the relevant details regarding the assignment(s) you wish to make, supplied as an array of assignment objects.

## Request body (required)

Content types: `application/json`

## Responses

- `200` - The request was processed. The array has one entry per submitted assignment, in request order: the URL of the driver's current-assignment resource if the assignment was created, otherwise a failure message. An assignment fails when its values are invalid (see the request field descriptions).
- `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.
- `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:
    post:
      summary: Create a driver-to-vehicle assignment.
      description: The POST Driver Assignment method enables integration users to link
        drivers to vehicles within a REVEAL account. The body of the request
        should contain the relevant details regarding the assignment(s) you wish
        to make, supplied as an array of assignment objects.
      operationId: createDriverAssignment
      tags:
        - Driver Assignment API
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/da/v1/driverassignments/?$
      requestBody:
        description: Assignment details including driver number and vehicle number.
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DriverAssignmentRequestList"
            example:
              - DriverNumber: "100096"
                VehicleNumber: "300456"
                StartDateUTC: 2026-11-09T08:00:00
                EndDateUTC: null
        required: true
      responses:
        "200":
          description: "The request was processed. The array has one entry per submitted
            assignment, in request order: the URL of the driver's
            current-assignment resource if the assignment was created, otherwise
            a failure message. An assignment fails when its values are invalid
            (see the request field descriptions)."
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
              example:
                - https://vzc.local/da/v1/driverassignments/drivers/100096/currentassignment
                - Failed to add driver assignment for Driver 100096 and vehicle
                  300456
        "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: {}
        "500":
          description: Internal server error.
          content:
            application/json: {}
components:
  schemas:
    DriverAssignmentRequestList:
      type: array
      description: The request body is an array of assignment objects.
      items:
        $ref: "#/components/schemas/DriverAssignmentRequest"
    DriverAssignmentRequest:
      type: object
      description: Details regarding a driver to vehicle assignment to be made.
      required:
        - DriverNumber
        - StartDateUTC
      properties:
        DriverNumber:
          type: string
          description: Driver Number is the unique identifier for Drivers created within
            REVEAL. The driver must exist in the account.
          example: "100096"
        VehicleNumber:
          type: string
          nullable: true
          description: Vehicle Number is the unique identifier for Vehicles created within
            REVEAL. An unknown or empty value does not cause the assignment to
            fail.
          example: "300456"
        StartDateUTC:
          type: string
          format: date-time
          description: Start date and time (UTC) of the driver to vehicle assignment. Must
            be later than the start of the account's data plan.
          example: 2026-11-09T08:00:00
        EndDateUTC:
          type: string
          format: date-time
          nullable: true
          description: End date and time (UTC) of the driver to vehicle assignment. When
            supplied, must be later than StartDateUTC.
          example: null
```
