---
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`

## Request

- Base URL: `https://api.automile.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.automile.com/v1/resourceowner/companyvehicle`
- Auth: OAuth 2
  - Implicit: `https://api.automile.com/login/`

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.dev/automile/apis/automile-api.md) - [All operations](https://skmtc.dev/automile/apis/automile-api/llms.txt) - [OpenAPI document](https://skmtc.dev/automile/apis/automile-api/revisions/56b5b8d6d733?raw)
