---
title: "CREATE a vehicle's sub company"
method: POST
path: "/v1/vehicles/{uuid}/subCompany"
tags: ["Vehicles"]
---

# CREATE a vehicle's sub company

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

Creates a new sub company history entry for the specified vehicle. This will be validated and added to vehicle's sub company history.This sub company entry will end when the next one starts, or it will be indefinite, if last one chronological. The entry must not have the same startDate as an existing vehicle sub company history entry.

## Path parameters

- `uuid` string, uuid, required

## Request body

- VehicleSubCompanyApiParams
  - `subCompany` string
  - `startDate` string, date

## Response `200`

Successful operation.

- VehicleSubCompanyHistoryDto
  - `uuid` string, uuid
  - `subCompany` string
  - `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
- `404` — Vehicle not found.
- `409` — The new sub company startDate conflicts with an existing sub company. The conflicting sub company 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)
