---
title: "Update a fleet item"
url: "https://developers.vzconnect.com/apis/fleet-api/versions/eedafde7-7fce-432c-90ee-2b2c651539b5/operations/PATCH__v1_fleet-items__fleetItemId_"
---

> Full API specification: https://developers.vzconnect.com/apis/fleet-api/versions/eedafde7-7fce-432c-90ee-2b2c651539b5.md

# Update a fleet item

`PATCH` `/fleetapi/v1/fleet-items/{fleetItemId}`

Operation ID: `PATCH__v1_fleet-items__fleetItemId_`

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)

## Path parameters

- `fleetItemId` (string, required) - 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)

## Header parameters

- `Idempotency-Key` (string, required) - A unique key to ensure the request is processed at most once.
- `If-Match` (string, optional) - The ETag value from a previous GET, used for optimistic concurrency control.

## Request body

Content types: `application/*+json`, `application/json`, `text/json`

## Responses

- `204` - The fleet item was successfully updated.
- `400` - Invalid patch operations or value format.
- `401` - Unauthorized
- `403` - Forbidden
- `404` - Fleet item not found for the given identifier.
- `409` - Concurrency conflict (stale ETag), or a new `name`, external ID or `registrationNumber` is already used by another fleet item of the same kind in the account (vehicles and powered assets are checked together, non-powered assets separately; `registrationNumber` is only checked for vehicles and powered assets).
- `422` - The patch operation is semantically invalid for the current state.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Fleet API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /fleetapi/v1/fleet-items/{fleetItemId}:
    patch:
      tags:
        - Fleet API
      summary: Update a fleet item
      description: >-
        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)
      operationId: PATCH__v1_fleet-items__fleetItemId_
      parameters:
        - name: fleetItemId
          in: path
          description: 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)
          required: true
          schema:
            type: string
        - name: Idempotency-Key
          in: header
          description: A unique key to ensure the request is processed at most once.
          required: true
          schema:
            type: string
        - name: If-Match
          in: header
          description: The ETag value from a previous GET, used for optimistic concurrency
            control.
          schema:
            type: string
      requestBody:
        description: The list of JSON Patch operations to apply.
        content:
          application/*+json:
            schema:
              title: JsonPatchOperations
              type: array
              items:
                $ref: "#/components/schemas/JsonPatchOperation"
              description: "A list of JSON Patch operations (RFC 6902) to apply atomically to
                the fleet item. Supported operations: `replace`, `add` (all
                paths). For `/externalIds` use `/externalIds/-` (a fleet item
                has at most one external ID, so any index is treated the same).
                `remove` is not supported (returns 422)."
          application/json:
            schema:
              title: JsonPatchOperations
              type: array
              items:
                $ref: "#/components/schemas/JsonPatchOperation"
              description: "A list of JSON Patch operations (RFC 6902) to apply atomically to
                the fleet item. Supported operations: `replace`, `add` (all
                paths). For `/externalIds` use `/externalIds/-` (a fleet item
                has at most one external ID, so any index is treated the same).
                `remove` is not supported (returns 422)."
            examples:
              Rename a fleet item:
                summary: Update the display name
                value:
                  - op: replace
                    path: /name
                    value: Delivery Van 042-B
              Update vehicle details:
                summary: Update VIN, manufacturer, and model in a single request
                value:
                  - op: replace
                    path: /vin
                    value: 1HGCM82633A004352
                  - op: replace
                    path: /manufacturer
                    value: Ford
                  - op: replace
                    path: /manufacturerModel
                    value: Transit Custom
              Assign external ID:
                summary: Add an external identifier from an integrated system
                value:
                  - op: add
                    path: /externalIds/-
                    value: telematics:VH-12345
              Move to a different group:
                summary: Reassign the fleet item to another organizational group by external
                  group ID
                value:
                  - op: replace
                    path: /primaryGroup
                    value:
                      externalIds:
                        - GRP-001
          text/json:
            schema:
              title: JsonPatchOperations
              type: array
              items:
                $ref: "#/components/schemas/JsonPatchOperation"
              description: "A list of JSON Patch operations (RFC 6902) to apply atomically to
                the fleet item. Supported operations: `replace`, `add` (all
                paths). For `/externalIds` use `/externalIds/-` (a fleet item
                has at most one external ID, so any index is treated the same).
                `remove` is not supported (returns 422)."
      responses:
        "204":
          description: The fleet item was successfully updated.
          content:
            application/json: {}
        "400":
          description: Invalid patch operations or value format.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
        "401":
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
        "404":
          description: Fleet item not found for the given identifier.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
        "409":
          description: Concurrency conflict (stale ETag), or a new `name`, external ID or
            `registrationNumber` is already used by another fleet item of the
            same kind in the account (vehicles and powered assets are checked
            together, non-powered assets separately; `registrationNumber` is
            only checked for vehicles and powered assets).
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
        "422":
          description: The patch operation is semantically invalid for the current state.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ProblemDetails"
      deprecated: false
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/fleetapi/v1/fleet-items/[^/]+/?$
components:
  schemas:
    JsonPatchOperation:
      type: object
      properties:
        op:
          type: string
          description: "The operation type. Supported: `replace`, `add`. `remove` is not
            supported and returns 422. RFC 6902 uses `op` as the JSON field
            name."
          nullable: true
          example: replace
        path:
          type: string
          description: The target path for the operation (e.g. `/name`, `/vin`).
          nullable: true
          example: /name
        value:
          description: The value for the operation. Required for `replace`, `add`.
          nullable: true
          example: Fleet Van 042-B
      additionalProperties: false
      description: Represents a single JSON Patch operation per RFC 6902.
      example:
        op: replace
        path: /name
        value: Delivery Van 042-B
    ProblemDetails:
      type: object
      properties:
        type:
          maxLength: 65519
          minLength: 0
          pattern: ^.{0,}$
          type: string
          nullable: true
          example: string
        title:
          maxLength: 65519
          minLength: 0
          pattern: ^.{0,}$
          type: string
          nullable: true
          example: string
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          maxLength: 65519
          minLength: 0
          pattern: ^.{0,}$
          type: string
          nullable: true
          example: string
        instance:
          maxLength: 65519
          minLength: 0
          pattern: ^.{0,}$
          type: string
          nullable: true
          example: string
      additionalProperties: false
```
