---
title: "Create a driver status record."
url: "https://developers.vzconnect.com/apis/driver-status-api-v1/versions/b10172e2-b107-49b8-b2b5-d22facc5daf8/operations/createDriverStatus"
---

> Full API specification: https://developers.vzconnect.com/apis/driver-status-api-v1/versions/b10172e2-b107-49b8-b2b5-d22facc5daf8.md

# Create a driver status record.

`POST` `/da/v1/driverstatuses`

Operation ID: `createDriverStatus`

Manages a driver's statuses throughout the day, enabling REVEAL users to compare a driver's statuses against vehicle activity (and, where work order integration is enabled, against work orders and work order statuses). The Driver Status API cannot be used to apply statuses to a particular driver until the Driver Status Options API has first been used to configure the applicable driver statuses available within an account. At this time, only PunchIn and PunchOut driver status information data will display within the REVEAL designated reports to show punch in and out data. Integration users can send additional driver statuses available within REVEAL, but only Punch In and Out statuses will be shown within the UI. The status becomes the driver's current status only if its date is later than the date of the current status. An earlier-dated status is stored in the history and the current status is unchanged.

## Request body (required)

Content types: `application/json`

## Responses

- `204` - Driver status accepted. No content is returned.
- `400` - Bad request. The status Code is empty or is not configured for the account, or StatusChangeDateUtc is not within the account's data plan.
- `401` - Unauthorized. Authentication credentials are missing or invalid.
- `404` - Driver not found for the specified driver number.
- `500` - Internal server error.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Driver Status API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /da/v1/driverstatuses:
    post:
      summary: Create a driver status record.
      description: >-
        Manages a driver's statuses throughout the day, enabling REVEAL users to
        compare a driver's statuses against vehicle activity (and, where work
        order integration is enabled, against work orders and work order
        statuses). The Driver Status API cannot be used to apply statuses to a
        particular driver until the Driver Status Options API has first been
        used to configure the applicable driver statuses available within an
        account.


        At this time, only PunchIn and PunchOut driver status information data
        will display within the REVEAL designated reports to show punch in and
        out data. Integration users can send additional driver statuses
        available within REVEAL, but only Punch In and Out statuses will be
        shown within the UI.


        The status becomes the driver's current status only if its date is later
        than the date of the current status. An earlier-dated status is stored
        in the history and the current status is unchanged.
      operationId: createDriverStatus
      tags:
        - Driver Status API
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/da/v1/driverstatuses/?$
      requestBody:
        description: Driver status details including driver number and clock-in/out
          information.
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DriverStatusRequest"
        required: true
      responses:
        "204":
          description: Driver status accepted. No content is returned.
        "400":
          description: Bad request. The status Code is empty or is not configured for the
            account, or StatusChangeDateUtc is not within the account's data
            plan.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
        "401":
          description: Unauthorized. Authentication credentials are missing or invalid.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
        "404":
          description: Driver not found for the specified driver number.
          content:
            application/json:
              schema:
                type: string
                example: Driver number 100096 not found.
        "500":
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
components:
  schemas:
    DriverStatusRequest:
      type: object
      description: The payload used to apply a status to a driver.
      required:
        - DriverNumber
        - Code
      properties:
        Code:
          type: string
          description: The Driver Status Type Code string value that will be displayed as
            reference within REVEAL where available.
          example: Clock In
        DriverNumber:
          type: string
          description: The unique Driver Number the status is being applied to.
          example: "100096"
        StatusChangeDateUtc:
          type: string
          format: date-time
          description: The date and time the status was applied to the referenced Driver
            Number. If omitted, the current UTC time is used.
          example: 2016-12-21T19:29:36.513
    ErrorResponse:
      type: object
      description: Generic error response. The documentation does not define an
        explicit error body schema.
      properties:
        Message:
          type: string
          description: A human-readable description of the error.
          nullable: true
```
