---
title: "Updates the given company vehicle id"
method: PUT
path: "/v1/resourceowner/companyvehicle/{companyVehicleIdToEdit}"
tags: ["ResourceOwnerCompanyVehicles"]
---

# Updates the given company vehicle id

`PUT /v1/resourceowner/companyvehicle/{companyVehicleIdToEdit}`

## 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/{companyVehicleIdToEdit}`
- Auth: OAuth 2
  - Implicit: `https://api.automile.com/login/`

This will update the company vehicle with the new model.

## Path parameters

- `companyVehicleIdToEdit` integer, required

## Request body

- CompanyVehicleEditModel
  - `CompanyId` integer, required
  - `VehicleId` integer, required

## Response `200`

The company vehicle was saved

## Other responses

- `403`: Request is forbidden, this could occur if you try to associate to companies you are not associated with
- `404`: The company, the vehicle or the company vehicle that you tried to update 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)
