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

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