---
title: "SearchAssignmentsInputDto"
url: "https://developers.vzconnect.com/apis/attribute-api/versions/5171af26-732a-43bc-84a1-1d89d361a339/schemas/SearchAssignmentsInputDto"
---

> Full API specification: https://developers.vzconnect.com/apis/attribute-api/versions/5171af26-732a-43bc-84a1-1d89d361a339.md

# SearchAssignmentsInputDto

Input DTO for the search assignments endpoint.

## OpenAPI definition

```yaml
openapi: 3.0.4
info:
  title: Attribute Api
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
components:
  schemas:
    SearchAssignmentsAttributesFilterDto:
      required:
        - attributes
      type: object
      properties:
        attributes:
          maxItems: 1000
          minItems: 1
          type: array
          items:
            $ref: "#/components/schemas/SearchAssignmentsAttributeFilterItemDto"
          description: Array of attribute filter entries pairing attribute IDs with string
            values.
      additionalProperties: false
      description: Filters by attributes criteria. Conditions are evaluated using OR logic
    SearchAssignmentsEntityFilterDto:
      required:
        - entityIds
        - type
      type: object
      properties:
        type:
          minLength: 1
          enum:
            - Vehicle
            - Driver
            - PoweredAsset
            - NonPoweredAsset
          type: string
          description: The entity type to filter on.
        entityIds:
          maxItems: 1000
          minItems: 1
          type: array
          items:
            maxLength: 36
            pattern: ^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$
            type: string
            format: uuid
            example: daeb4b32-2d41-44b0-8a5b-285b946c2fde
          description: The entity IDs to filter on for this entity type.
      additionalProperties: false
      description: A single entity filter entry pairing an entity type with optional
        entity IDs.
    SearchAssignmentsPaginationDto:
      type: object
      properties:
        limit:
          maximum: 1000
          minimum: 1
          type: integer
          description: Maximum number of results to return.
          format: int32
          nullable: true
        offset:
          maximum: 2147483647
          minimum: 0
          type: integer
          description: Zero-based pagination offset.
          format: int32
          nullable: true
        totalRequired:
          type: boolean
          description: When true, the response includes the total count of matching
            assignments.
          nullable: true
      additionalProperties: false
      description: Pagination parameters for the search assignments endpoint.
    SearchAssignmentsAttributeFilterItemDto:
      required:
        - stringValues
      type: object
      properties:
        attributeId:
          pattern: ^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$
          type: string
          description: The attribute UUID to filter on. Populated if ExternalId is omitted
          nullable: true
        externalId:
          pattern: ^(?=.{3,96}$)[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+$
          type: string
          description: Optional external identifier. Populated if id is omitted
          nullable: true
        stringValues:
          maxItems: 100
          minItems: 1
          type: array
          items:
            maxLength: 0
            minLength: 0
            pattern: ^.{0,}$
            type: string
          description: The string values to match for this attribute filter.
          example:
            - string
      additionalProperties: false
      description: A single attribute filter entry pairing an attribute ID with
        optional string values.
    SearchAssignmentsInputDto:
      required:
        - pagination
      type: object
      properties:
        attributesFilter:
          $ref: "#/components/schemas/SearchAssignmentsAttributesFilterDto"
        entities:
          maxItems: 1000
          minItems: 0
          type: array
          items:
            $ref: "#/components/schemas/SearchAssignmentsEntityFilterDto"
          description: Entity filter criteria. Controls which entity types and IDs to match.
          nullable: true
        pagination:
          $ref: "#/components/schemas/SearchAssignmentsPaginationDto"
      additionalProperties: false
      description: Input DTO for the search assignments endpoint.
```
