Update a fleet item

Applies atomic, partial updates to a specific fleet item using the JSON Patch specification (RFC 6902).

Identifiers:
Accepts either a fleet item ID or an external identifier. Any value that is not a fleet item ID is treated as an external identifier and matched as stored (usually consumer-scope:consumer-id; legacy values may have no scope).

Idempotency-Key:
Required. A unique client-generated key that ensures duplicate requests produce the same result. Include this header to safely retry requests without risking duplicate operations. Requests without it return 400.

If-Match:
Required containing the current ETag to enforce optimistic concurrency control.

Supported Patch Paths:
Only modifications to the following paths are permitted. Paths are case-sensitive and must match exactly as listed (e.g. /fuelType, not /fueltype); any other path returns 422.

  • Core Data: /name, /notes, /fuelType, /size
  • External ID: /externalIds/- (add, only when no external ID is set) or /externalIds/0 (replace), value format consumer-scope:consumer-id, single value. A fleet item has at most one external ID, so the index is not used; if several external ID operations are sent, only the last one is applied. The whole-array path /externalIds is not supported.
  • Group Assignment: /primaryGroup — object: { "externalIds": ["external group ID"] }, single value
  • Vehicle/Asset Data: /vin, /manufacturer, /manufacturerModel, /manufactureYear
  • Registration Data: /registrationNumber, /registrationType

Operational Data (vehicles and powered assets only; non-powered assets return 400):

  • /engineHours: The value must be provided in minutes. Requires an accompanying /asOf operation.
  • /odometerCurrentValue: Requires an accompanying /asOf operation.
  • /asOf: The date and time the reading was taken, sent with add or replace. Must be within the last 30 days and not in the future, otherwise 400.

Supported Operations:

  • replace: Update the value at the specified path (all supported paths).
  • add: Set a value at the specified path (all supported paths). For /externalIds use /externalIds/-.
  • remove: Not supported. Returns 422 on any path.

Examples:

  • PATCH /v1/fleet-items/01945a3b-7c8d-7e9f-a0b1-c2d3e4f5a6b7 (fleet item ID)
  • PATCH /v1/fleet-items/telematics:VH-12345 (external identifier)
patch
https://api.us.vzconnect.com/fleetapi/v1/fleet-items/{fleetItemId}

Path Parameters

fleetItemIdstringrequired

Fleet item identifier — either a fleet item ID or an external identifier, matched as stored (usually consumer-scope:consumer-id; legacy VehicleNumber or AssetNumber values may have no scope)

Headers

Idempotency-Keystringrequired

A unique key to ensure the request is processed at most once.

If-Matchstring

The ETag value from a previous GET, used for optimistic concurrency control.

Body

The list of JSON Patch operations to apply.

JsonPatchOperations

Represents a single JSON Patch operation per RFC 6902.

* Additional properties are NOT allowed.
opstring | null

The operation type. Supported: replace, add. remove is not supported and returns 422. RFC 6902 uses op as the JSON field name.

Example:replace

pathstring | null

The target path for the operation (e.g. /name, /vin).

Example:/name

value

The value for the operation. Required for replace, add.

Example:Fleet Van 042-B

Response

application/json

The fleet item was successfully updated.

 
application/json

PostFleetItemResponse

object
* Additional properties are NOT allowed.
fleetIdinteger(int32)
labelstring
serialNumberinteger(int64)
typestring
driverNamestring
primaryGroupDescriptionstring
vehicleTrackingIdinteger(int64)
fleetClientIdstring
registrationNumberstring
boxIdinteger(int32)
boxNamestring
fleetIdentificationNumberstring
fleetItemStateinteger(int32)

Allowed values:12

fuelTypeinteger(int32)

Allowed values:123

makestring
modelstring
yearinteger(int32)
vehicleSizeinteger(int32)

Allowed values:123

Example

FleetDetailedOutput

object

Complete representation of a fleet item (vehicle, powered asset, or non-powered asset) returned by the GET /v1/fleet-items/{fleetItemId} endpoint.

* Additional properties are NOT allowed.
fleetItemIdstring

Unique public identifier for the fleet item.

namestring

Display name or label assigned to the fleet item (e.g. vehicle call-sign or asset tag).

fleetItemStatestring

Current lifecycle state of the fleet item (ACTIVE or INACTIVE).

Allowed values:ACTIVEINACTIVE

fleetItemTypestring

Type of fleet item: VEHICLE, POWERED_ASSET, or NON_POWERED_ASSET.

Allowed values:VEHICLENON_POWERED_ASSETPOWERED_ASSET

costnumber(double)

Operational cost associated with the fleet item, in the account’s configured currency. Always null for non-powered assets.

eTagstring

Entity tag for optimistic concurrency control. Include this value in the If-Match header when performing PATCH updates.

externalIdsarray[string]

An external identifier used to map this Reveal entity to your consumer systems. This field combines the older vehicleNumber and assetNumber fields into a single unique identifier, offering a broader capability that handles both vehicles and assets within a unified property. Values set through this API use the format consumer-scope:consumer-id (e.g. telematics:VH-12345); older values imported from vehicleNumber or assetNumber may have no scope.

Match pattern:^[^\n]{1,120}$

<= 1 items

Example:telematics:VH-12345

notesstring

Free-text notes or comments attached to the fleet item by an administrator.

vinstring

Vehicle Identification Number (VIN) — a unique 17-character code assigned by the manufacturer. Applicable to vehicles only.

manufacturerstring

Name of the vehicle or asset manufacturer (e.g. “Ford”, “Caterpillar”).

manufacturerModelstring

Manufacturer’s model designation (e.g. “Transit”, “320F”).

manufactureYearinteger(int32)

Year the vehicle or asset was manufactured.

esnstring

Electronic Serial Number identifying the telematics device installed in the fleet item.

fuelTypestring

Fuel type used by the vehicle: NOT_SET, UNLEADED, DIESEL, or ELECTRIC.

Allowed values:NOT_SETUNLEADEDDIESELELECTRIC

sizestring

Weight classification of the vehicle: LIGHT, MEDIUM, HEAVY, or SUPER_HEAVY.

Allowed values:LIGHTMEDIUMHEAVYSUPER_HEAVY

registrationNumberstring

Government-issued registration or license plate number.

registrationTypeinteger(int32)

Numeric code representing the type of vehicle registration (jurisdiction-specific).

metricsarray[object]read-only

An operational metric associated with a fleet item (fuel capacity or efficiency).

* Additional properties are NOT allowed.
Show Child Parameters
linksarray[object]read-only

HATEOAS navigation links for related resources and actions.

* Additional properties are NOT allowed.
Show Child Parameters
Example

FleetItemMetric

object

An operational metric associated with a fleet item (fuel capacity or efficiency).

* Additional properties are NOT allowed.
labelstring

Name of the metric: fuelCapacity, cityEfficiency or highwayEfficiency. For electric vehicles these carry battery capacity and kWh-based efficiency.

valuestring

Current value of the metric, represented as a string regardless of underlying type.

valueTypestring

Data type of the metric value: STRING, NUMBER, BOOLEAN, GUID, or DATE.

Allowed values:STRINGNUMBERBOOLEANGUIDDATE

Example

FleetItem

object

A fleet item returned by the POST /v1/fleet-items/search endpoint. When the request’s fields array is set, only the requested properties are present; when it is omitted or empty, every property is returned.

* Additional properties are NOT allowed.
fleetItemIdstring

Unique public identifier for the fleet item.

eTagstring

Entity tag for optimistic concurrency control. Include this value in the If-Match header when performing PATCH updates. Only returned when fields is omitted or empty.

namestring

Display name or label assigned to the fleet item (e.g. vehicle call-sign or asset tag).

registrationNumberstring

Government-issued registration or license plate number.

fleetItemTypestring

Type of fleet item: VEHICLE, POWERED_ASSET, or NON_POWERED_ASSET.

Allowed values:VEHICLENON_POWERED_ASSETPOWERED_ASSET

manufacturerstring

Name of the vehicle or asset manufacturer (e.g. “Ford”, “Caterpillar”).

manufacturerModelstring

Manufacturer’s model designation (e.g. “Transit”, “320F”).

manufactureYearinteger(int32)

Year the vehicle or asset was manufactured.

vinstring

Vehicle Identification Number (VIN) — a unique 17-character code assigned by the manufacturer. Applicable to vehicles only.

esnstring

Electronic Serial Number identifying the telematics device installed in the fleet item.

fuelTypestring

Fuel type used by the vehicle: NOT_SET, UNLEADED, DIESEL, or ELECTRIC.

Allowed values:NOT_SETUNLEADEDDIESELELECTRIC

sizestring

Weight classification of the vehicle: LIGHT, MEDIUM, HEAVY, or SUPER_HEAVY.

Allowed values:LIGHTMEDIUMHEAVYSUPER_HEAVY

notesstring

Free-text notes or comments attached to the fleet item by an administrator.

externalIdsarray[string]

An array containing at most one external identifier used to map this Reveal entity to your consumer systems. External IDs set through this API use the format consumer-scope:consumer-id (e.g. telematics:VH-12345); older values imported from vehicleNumber or assetNumber may have no scope.

metricsarray[object]

An operational metric associated with a fleet item (fuel capacity or efficiency).

* Additional properties are NOT allowed.
Show Child Parameters
Example