<!-- dev-portal
method: POST
title: Create Driver Association
path: /v1/driver-association
-->

### POST /v1/driver-association

Create new driver association record

#### Request Body

| Name       | Type           | Required | Description                                                         |
|------------|----------------|----------|---------------------------------------------------------------------|
| driver_id  | UUID           | Yes      | Unique identifier of the driver.                                    |
| vin        | string         | Yes      | Vehicle Identification Number.                                      |
| start_time | OffsetDateTime | Yes      | Start time of the association. example: "2024-09-11T23:00:00.000Z". |

#### Response
201 when created 

##### Response Codes

| Name | Description                                                                                                               |
|------|---------------------------------------------------------------------------------------------------------------------------|
| 201  | Created.                                                                                                                  |

#### Example
```bash
curl -X POST \
  -H "Authorization: Bearer ${AUTH_TOKEN}" \
  "https://${HOST}/vehicle-status-api/v2/driver-association" \
  -d '{
    "driver_id": "a3ad4045-1213-4243-a884-0b004470a9cd",
    "vin": "1DTEW1C47KDB54736",
    "start_time": "2024-09-08T00:00:00.000Z"
  }'

201 Created
```
