latestOpenAPI 3.0.12026-08-192092911.2 MB

916e669fc527

Vehicles

Update a vehicle

Update the details of a single vehicle (required scope vehicles:write)

patch/v1/vehicles/{vehicleId}

Path parameters

vehicleIdinteger required

Headers

Customer-Idinteger required

The customer identifier

Request body

groupIdinteger

The unique identifier of the group that the vehicle belongs to<br/><br/>Optional: Omit to retain current value

vehicleType'motorcycle' | 'car' | 'trailer' | 'bus' | 'emergency' | 'goodsLess7_5T' | 'goodsMore7_5T' | 'busLess12'

Enumeration representing different types of vehicles<p>Possible values:</p><ul><li><b>motorcycle</b>: Motorcycle vehicle type</li><li><b>car</b>: Car vehicle type</li><li><b>trailer</b>: Trailer vehicle type</li><li><b>bus</b>: Bus vehicle type</li><li><b>emergency</b>: Emergency vehicle type</li><li><b>goodsLess7_5T</b>: Goods vehicle type with weight less than 7.5 tons</li><li><b>goodsMore7_5T</b>: Goods vehicle type with weight more than or equal to 7.5 tons</li><li><b>busLess12</b>: Bus vehicle type with less than 12 seats</li></ul>

fixedResourceIdinteger nullable

The unique identifier of the resource who this vehicle is assigned to<br/><br/>Optional: Omit to retain current value or provide null to unset

referencestring nullable

The internal reference of the vehicle - should usually be unique<br/><br/>Optional: Omit to retain current value or provide null to unset

registrationstring

The registration number of the vehicle<br/><br/>Optional: Omit to retain current value

makestring nullable

The manufacturer of the vehicle<br/><br/>Optional: Omit to retain current value or provide null to unset

modelstring nullable

The model of the vehicle<br/><br/>Optional: Omit to retain current value or provide null to unset

registrationYearinteger nullable

The year that the vehicle was first registered as new<br/><br/>Optional: Omit to retain current value or provide null to unset

isSchedulableboolean

Indicates whether this vehicle can be scheduled jobs<br/><br/>Optional: Omit to retain current value

idlingFuelConsumptionRatenumber double nullable

The litre fuel consumption of the vehicle used when idling per minute<br/><br/>Optional: Omit to retain current value or provide null to unset

costPerKmnumber double nullable

The running cost of the vehicle per kilometre, expressed in costPerKmCurrencyCode<br/><br/>Optional: Omit to retain current value or provide null to unset

costPerDaynumber double nullable

The running cost of the vehicle per day, expressed in costPerDayCurrencyCode<br/><br/>Optional: Omit to retain current value or provide null to unset

costPerKmCurrencyCode'EUR' | 'AUD' | 'GBP' | 'BGN' | 'CAD' | 'CZK' | 'DKK' | 'HUF' | 'ILS' | 'LVL' | 'LTL' | 'MXN' | 'NZD' | 'NOK' | 'PLN' | 'RON' | 'RUB' | 'ZAR' | 'SEK' | 'CHF' | 'AED' | 'USD'

CurrencyCode definitions enum, matches currencies available in the BigChange Client Site<p>Possible values:</p><ul><li><b>EUR</b>: Euro</li><li><b>AUD</b>: Australian Dollar</li><li><b>GBP</b>: Pound Sterling</li><li><b>BGN</b>: Bulgarian Lev</li><li><b>CAD</b>: Canadian Dollar</li><li><b>CZK</b>: Czech Koruna</li><li><b>DKK</b>: Danish Krone</li><li><b>HUF</b>: Forint</li><li><b>ILS</b>: New Israeli Sheqel</li><li><b>LVL</b>: Latvian Lats - replaced by Euro</li><li><b>LTL</b>: Lithuanian Litas - replaced by Euro</li><li><b>MXN</b>: Mexican Peso</li><li><b>NZD</b>: New Zealand Dollar</li><li><b>NOK</b>: Norwegian Krone</li><li><b>PLN</b>: Zloty</li><li><b>RON</b>: Romanian Leu</li><li><b>RUB</b>: Russian Ruble</li><li><b>ZAR</b>: Rand</li><li><b>SEK</b>: Swedish Krona</li><li><b>CHF</b>: Swiss Franc</li><li><b>AED</b>: UAE Dirham</li><li><b>USD</b>: US Dollar</li></ul>

costPerDayCurrencyCode'EUR' | 'AUD' | 'GBP' | 'BGN' | 'CAD' | 'CZK' | 'DKK' | 'HUF' | 'ILS' | 'LVL' | 'LTL' | 'MXN' | 'NZD' | 'NOK' | 'PLN' | 'RON' | 'RUB' | 'ZAR' | 'SEK' | 'CHF' | 'AED' | 'USD'

CurrencyCode definitions enum, matches currencies available in the BigChange Client Site<p>Possible values:</p><ul><li><b>EUR</b>: Euro</li><li><b>AUD</b>: Australian Dollar</li><li><b>GBP</b>: Pound Sterling</li><li><b>BGN</b>: Bulgarian Lev</li><li><b>CAD</b>: Canadian Dollar</li><li><b>CZK</b>: Czech Koruna</li><li><b>DKK</b>: Danish Krone</li><li><b>HUF</b>: Forint</li><li><b>ILS</b>: New Israeli Sheqel</li><li><b>LVL</b>: Latvian Lats - replaced by Euro</li><li><b>LTL</b>: Lithuanian Litas - replaced by Euro</li><li><b>MXN</b>: Mexican Peso</li><li><b>NZD</b>: New Zealand Dollar</li><li><b>NOK</b>: Norwegian Krone</li><li><b>PLN</b>: Zloty</li><li><b>RON</b>: Romanian Leu</li><li><b>RUB</b>: Russian Ruble</li><li><b>ZAR</b>: Rand</li><li><b>SEK</b>: Swedish Krona</li><li><b>CHF</b>: Swiss Franc</li><li><b>AED</b>: UAE Dirham</li><li><b>USD</b>: US Dollar</li></ul>

odometerUnit'miles' | 'kilometres'

The unit of measure for distance presented by the vehicles odometer<p>Possible values:</p><ul><li><b>miles</b></li><li><b>kilometres</b></li></ul>

odometerinteger

The latest reading from the vehicles odometer. If provided with a value, the new odometer reading will be recorded even if the value hasn't changed<br/><br/>Optional: Omit to retain current value

roadSafetyExpiresAtstring date nullable

The date of when the vehicles road safety test expires (eg. UK MOT test)<br/><br/>Optional: Omit to retain current value or provide null to unset

roadTaxExpiresAtstring date nullable

The date of when the vehicles road tax expires<br/><br/>Optional: Omit to retain current value or provide null to unset

serviceDueAtstring date nullable

The date of when the vehicles next service is due<br/><br/>Optional: Omit to retain current value or provide null to unset

insuranceDueAtstring date nullable

The date of when the vehicles insurance is due for renewal<br/><br/>Optional: Omit to retain current value or provide null to unset

co2EmissionsGramsPerKminteger nullable

The vehicle co2 emission rate as (grams per km). Mutually exclusive with Co2EmissionsKilogramsPerLitre. Setting this property with a non-null value will nullify the Co2EmissionsKilogramsPerLitre property, if previously set. To retain the current value, omit both Co2EmissionsGramsPerKm and Co2EmissionsKilogramsPerLitre<br/><br/>Optional: Omit to retain current value or provide null to unset

co2EmissionsKilogramsPerLitrenumber double nullable

The vehicle co2 emission rate as (kilograms per litre). Mutually exclusive with Co2EmissionsGramsPerKm. Setting this property with a non-null value will nullify the Co2EmissionsGramsPerKm property, if previously set. To retain the current value, omit both Co2EmissionsGramsPerKm and Co2EmissionsKilogramsPerLitre<br/><br/>Optional: Omit to retain current value or provide null to unset

Example request

{
  "groupId": 7927,
  "vehicleType": "motorcycle",
  "fixedResourceId": 110841,
  "reference": "ABC5514123",
  "registration": "BC24 BIG",
  "make": "Ford",
  "model": "Transit",
  "registrationYear": 2012,
  "isSchedulable": true,
  "idlingFuelConsumptionRate": 0.1,
  "costPerKm": 0.25,
  "costPerDay": 0.25,
  "costPerKmCurrencyCode": "EUR",
  "costPerDayCurrencyCode": "EUR",
  "odometerUnit": "miles",
  "odometer": 51023,
  "roadSafetyExpiresAt": "2022-11-29",
  "roadTaxExpiresAt": "2022-11-29",
  "serviceDueAt": "2022-11-29",
  "insuranceDueAt": "2022-11-29",
  "co2EmissionsGramsPerKm": 5,
  "co2EmissionsKilogramsPerLitre": 5.5,
  "customFields": [
    {
      "definitionId": 5514123,
      "value": "High net worth"
    }
  ]
}

Response

No Content