> ## Documentation Index
> Fetch the complete documentation index at: https://docs.connectedfleet.michelin.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Vehicle

> PUT request to update the details for an existing vehicle. This is a partial update and only those values specified will be updated.



## OpenAPI

````yaml /api-reference/fleet-management.json put /public/v1/customer/{customerId}/vehicle/{vehicleId}
openapi: 3.0.1
info:
  title: Fleet management
  description: >-
    A comprehensive administration pack enabling full control over fleet
    structures, users, drivers, vehicles and operational data.
  contact:
    name: Masternaut
    url: https://www.masternaut.com
    email: support@masternautconnect.com
  version: 124.0.2607160821
servers:
  - url: https://api.masternautconnect.com/connect-webservices/services
    description: Product Server
security:
  - basicAuth: []
tags:
  - name: /driver
    description: Driver Operations
  - name: /group
    description: Group operations
  - name: /location/category
    description: Location category management operations
  - name: /location
    description: Location management operations
  - name: /role
    description: Role operations
  - name: /tokenInformation
    description: Token operations
  - name: /user
    description: User operations
  - name: /maintenance
    description: Vehicle maintenance operations
  - name: /vehicle
    description: Vehicle management operations
paths:
  /public/v1/customer/{customerId}/vehicle/{vehicleId}:
    put:
      tags:
        - /vehicle
      summary: Update Vehicle
      description: >-
        PUT request to update the details for an existing vehicle. This is a
        partial update and only those values specified will be updated.
      operationId: updateVehicle
      parameters:
        - name: customerId
          in: path
          required: true
          schema:
            type: string
        - name: vehicleId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json;charset=UTF-8:
            schema:
              $ref: '#/components/schemas/VehicleDto'
        required: true
      responses:
        '200':
          description: updated asset with correct values
          content:
            application/json;charset=UTF-8:
              schema:
                $ref: '#/components/schemas/VehicleDto'
        '400':
          description: Message related to validation
components:
  schemas:
    VehicleDto:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        registration:
          type: string
        groupId:
          type: string
        groupName:
          type: string
        type:
          type: string
        make:
          type: string
        model:
          type: string
        tags:
          uniqueItems: true
          type: array
          items:
            type: string
        defaultDriverId:
          type: string
        status:
          type: string
        assetCosts:
          $ref: '#/components/schemas/VehicleCostsDto'
        customerId:
          type: string
        secondaryGroups:
          type: array
          items:
            $ref: '#/components/schemas/IdNameDto'
    VehicleCostsDto:
      type: object
      properties:
        yearOfManufacture:
          type: integer
          description: Year the vehicle was manufactured.
          format: int32
        ownershipStartDate:
          type: string
          description: Start date of vehicle ownership.
          format: date
        ownershipEndDate:
          type: string
          description: End date of vehicle ownership.
          format: date
        purchaseCost:
          type: number
          description: Purchase cost of the vehicle.
        monthlyLeaseCost:
          type: number
          description: Monthly lease cost for the vehicle.
        monthlyInsuranceCost:
          type: number
          description: Monthly insurance cost for the vehicle.
        monthlyMaintenanceCost:
          type: number
          description: Monthly maintenance cost for the vehicle.
        scheduledMaintenanceAmount:
          type: number
          description: Amount budgeted for scheduled maintenance.
        unscheduledMaintenanceAmount:
          type: number
          description: Cost incurred for unscheduled maintenance.
        monthlyFuelCost:
          type: number
          description: Estimated monthly fuel cost for the vehicle.
        mileageAuthorised:
          type: integer
          description: Authorized mileage limit for the vehicle.
          format: int32
        costPerMileOverLimit:
          type: number
          description: Cost per mile when exceeding authorized mileage.
        costOfDisposal:
          type: number
          description: Cost associated with vehicle disposal.
        buyoutAmount:
          type: number
          description: Buyout amount for leased vehicle.
        costCurrency:
          type: string
          description: Currency code for all cost values.
      description: >-
        Vehicle cost information including purchase, lease, maintenance, and
        operational costs.
    IdNameDto:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the entity (alphanumeric)
        name:
          type: string
          description: Display name of the entity. Not returned if empty
      description: Simple identifier and name pair for groups, vehicles, or other entities.
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic

````