---
title: "SearchCondition"
url: "https://developers.vzconnect.com/apis/fleet-api/versions/eedafde7-7fce-432c-90ee-2b2c651539b5/schemas/SearchCondition"
---

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

# SearchCondition

A single filter condition within a search request. Combines a field, comparison operator, and one or more values.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Fleet API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
components:
  schemas:
    ConditionField:
      type: string
      description: "Filterable fields available for search conditions on the POST
        /v1/fleet-items/search endpoint. Fields: `fleetItemId`, `fleetItemType`
        (`VEHICLE`/`POWERED_ASSET`/`NON_POWERED_ASSET`), `externalIds` (external
        identifiers used to map Reveal entities to consumer systems — combines
        the older `vehicleNumber` and `assetNumber` into a single unified
        property)."
      enum:
        - fleetItemId
        - fleetItemType
        - externalIds
    ConditionOperator:
      type: string
      description: "The comparison operator to apply: `IN` (membership), `EQUALS`
        (exact match), or `CONTAINS_ANY` (overlap)."
      enum:
        - IN
        - EQUALS
        - CONTAINS_ANY
    SearchCondition:
      required:
        - field
        - operator
        - values
      type: object
      properties:
        field:
          $ref: "#/components/schemas/ConditionField"
        operator:
          $ref: "#/components/schemas/ConditionOperator"
        values:
          minItems: 1
          type: array
          items:
            type: string
            description: A filter value to match against. Format depends on the field — for
              `externalIds` use the stored external ID, matched as a whole
              value, case-insensitive (usually `consumer-scope:consumer-id`,
              e.g. `telematics:VH-12345`), for `fleetItemType` use the enum
              value (e.g. `VEHICLE`), for `fleetItemId` use the fleet item ID.
          description: The value(s) to compare against. Cardinality depends on the
            operator — `EQUALS` requires exactly 1, `IN`/`CONTAINS_ANY` accept
            1..N.
          example:
            - telematics:VH-12345
            - fleet-mgmt:A-999
      additionalProperties: false
      description: A single filter condition within a search request. Combines a
        field, comparison operator, and one or more values.
      example:
        field: externalIds
        operator: CONTAINS_ANY
        values:
          - telematics:VH-12345
          - fleet-mgmt:A-999
```
