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

### PUT /v1/driver-association

End driver association for a vehicle association record with given end time.

#### Request Body

| Name     | Type           | Required | Description                                                      |
|----------|----------------|----------|------------------------------------------------------------------|
| id       | UUID           | Yes      | The id of association record wanting to update.                  |
| end_time | OffsetDateTime | Yes      | End time of the association. example: "2024-09-11T23:00:00.000Z" |

#### Response
204 when created

##### Response Codes

| Name | Description                                                                                                               |
|------|---------------------------------------------------------------------------------------------------------------------------|
| 204  | No Content.                                                                                                               |

#### Example
```bash
curl -X PUT \
  -H "Authorization: Bearer ${AUTH_TOKEN}" \
  "https://${HOST}/vehicle-status-api/v1/driver-association" \
  -d '{
    "id": "b3ac4045-1234-1234-a884-0b004470a9ce",
    "end_time": "2024-09-08T00:00:00.000Z"
  }'

204 No Content
```
