---
title: "CREATE driver state history entry"
method: POST
path: "/v1/drivers/{uuid}/stateHistory"
tags: ["Drivers"]
---

# CREATE driver state history entry

`POST /v1/drivers/{uuid}/stateHistory`

Adds an entry to the driver state history. This cannot be added on the same day as an existing entry. If the driver is archived, any fuel card or vehicle assignments associated with this driver will be automatically ended on the archive date.

## Path parameters

- `uuid` string, uuid, required

## Request body

- DriverStateHistoryApiParams
  - `date` string, date
  - `state` 'ACTIVE' | 'INACTIVE' | 'LEAVE'

## Response `200`

Successful operation.

- DriverStateHistoryDto
  - `uuid` string, uuid
  - `driverUuid` string, uuid
  - `state` 'ACTIVE' | 'INACTIVE' | 'LEAVE'
  - `dateRange` DateRangeDto
    - `startDate` string, date — Inclusive start date.
    - `endDate` string, date — Exclusive end date.

## Other responses

- `400` — Bad request - information on the invalid fields will be provided in the response body
- `409` — There is an existing driver state entry on this date

---

[API](https://skmtc.net/avrios/apis/fleet-api-specifications.md) · [All operations](https://skmtc.net/avrios/apis/fleet-api-specifications/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/avrios/fleet-api-specifications/revisions/78fc4b609513/schema)
