---
title: "ASSIGN a specified driver to this vehicle"
method: POST
path: "/v1/vehicles/{uuid}/assignments"
tags: ["Vehicle assignments"]
---

# ASSIGN a specified driver to this vehicle

`POST /v1/vehicles/{uuid}/assignments`

Assign a driver (specified in the request body) to the vehicle under this url.

## Path parameters

- `uuid` string, uuid, required

## Request body

- CreateAssignmentByVehicleRequest
  - `driverUuid` string, uuid
  - `duration` DurationDto
    - `startDate` string, date-time
    - `endDate` string, date-time

## Response `200`

Successful operation.

- AssignmentDto
  - `uuid` string, uuid
  - `vehicleUuid` string, uuid
  - `driverUuid` string, uuid
  - `duration` DurationDto
    - `startDate` string, date-time
    - `endDate` string, date-time
  - `active` boolean

## Other responses

- `400` — Bad request - information on the invalid fields will be provided in the response body
- `404` — Vehicle or driver not found.
- `409` — The new assignment conflicts with one or more other assignments. The conflicting assignments will be returned in an error response.

---

[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)
