---
title: "Creates a new company vehicle and associates it with user through the company"
method: POST
path: "/v1/resourceowner/companyvehicle"
tags: ["ResourceOwnerCompanyVehicles"]
---

# Creates a new company vehicle and associates it with user through the company

`POST /v1/resourceowner/companyvehicle`

The user only has access to contacts that it is associated with through the company

## Request body

- CompanyVehicleCreateModel
  - `CompanyId` integer, required
  - `VehicleId` integer, required

## Response `200`

A link in the header is returned to the newly created company vehicle

## Other responses

- `403` — Request is forbidden, this could occur if you try to associate to companies you are not associated with
- `404` — The company that you tried to use doesn't exist
- `500` — Internal server error

---

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