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

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

# Search attribute assignments

`POST` `/attribute/v1/assignments/search`

Operation ID: `searchAssignments`

Searches attribute assignments across multiple attributes and entities.

## Request body

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

## Responses

- `200` - Assignments retrieved successfully.
- `400` - Invalid request. Validation errors in the request body.
- `401` - Unauthorized
- `403` - Forbidden
- `415` - Unsupported Media Type
- `429` - Too Many Requests
- `default` - Error

## OpenAPI definition

```yaml
openapi: 3.0.4
info:
  title: Attribute Api
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /attribute/v1/assignments/search:
    post:
      tags:
        - Attribute API
      summary: Search attribute assignments
      description: Searches attribute assignments across multiple attributes and entities.
      operationId: searchAssignments
      requestBody:
        description: Search criteria including attribute filters, entity filters, and
          pagination.
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/SearchAssignmentsInputDto"
          text/json:
            schema:
              $ref: "#/components/schemas/SearchAssignmentsInputDto"
          application/*+json:
            schema:
              $ref: "#/components/schemas/SearchAssignmentsInputDto"
      responses:
        "200":
          description: Assignments retrieved successfully.
          content:
            text/plain:
              schema:
                $ref: "#/components/schemas/SearchAssignmentsOutputDto"
            application/json:
              schema:
                $ref: "#/components/schemas/SearchAssignmentsOutputDto"
            text/json:
              schema:
                $ref: "#/components/schemas/SearchAssignmentsOutputDto"
        "400":
          description: Invalid request. Validation errors in the request body.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/VerizonProblemDetails"
        "401":
          description: Unauthorized
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/VerizonProblemDetails"
        "403":
          description: Forbidden
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/VerizonProblemDetails"
        "415":
          description: Unsupported Media Type
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/VerizonProblemDetails"
        "429":
          description: Too Many Requests
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/VerizonProblemDetails"
        default:
          description: Error
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/VerizonProblemDetails"
security:
  - STS: []
components:
  schemas:
    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.
    SearchAssignmentsOutputDto:
      required:
        - items
      type: object
      properties:
        items:
          type: array
          items:
            $ref: "#/components/schemas/SearchAssignmentItemDto"
          description: The paginated list of items.
        totalPages:
          type: integer
          description: The number of pages available based on the total count and query
            limit.
          format: int32
          nullable: true
          example: 4
        totalCount:
          type: integer
          description: Total count of matching items. Populated only when TotalRequired is
            true.
          format: int32
          nullable: true
          example: 87
      additionalProperties: false
      description: Output DTO for the search assignments endpoint.
    VerizonProblemDetails:
      type: object
      properties:
        type:
          maxLength: 65519
          minLength: 0
          pattern: ^.{0,}$
          type: string
          description: A URI reference that identifies the problem type.
          format: uri-reference
          nullable: true
          example: string
        title:
          maxLength: 65519
          minLength: 0
          pattern: ^.{0,}$
          type: string
          description: A short, human-readable summary of the problem type.
          nullable: true
          example: string
        status:
          maximum: 599
          minimum: 300
          type: integer
          description: The HTTP status code generated by the origin server for this
            occurrence of the problem.
          format: int32
          nullable: true
        detail:
          maxLength: 65519
          minLength: 0
          pattern: ^.{0,}$
          type: string
          description: A human-readable explanation specific to this occurrence of the
            problem.
          nullable: true
          example: string
        instance:
          maxLength: 65519
          minLength: 0
          pattern: ^.{0,}$
          type: string
          description: A URI reference that identifies the specific occurrence of the
            problem. It may or may not yield further information if
            dereferenced.
          nullable: true
          example: string
        debugId:
          maxLength: 2048
          minLength: 3
          pattern: ^.{0,}$
          type: string
          description: A unique error identifier string generated on the service-side and
            logged for correlation purposes. Verizon extension to RFC 9457.
          nullable: true
          example: string
        errors:
          maxItems: 1000
          minItems: 0
          type: array
          items:
            $ref: "#/components/schemas/ProblemError"
          description: List of errors. Verizon extension to RFC 9457.
          nullable: true
      additionalProperties: false
      description: A machine-readable format for specifying errors in HTTP API
        responses based on RFC 9457. Responses include the Verizon extension
        field 'debugId' — a unique error identifier generated server-side and
        logged for correlation (maps to x-request-id / Correlation-Id header).
    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.
    SearchAssignmentItemDto:
      required:
        - accountId
        - assignmentId
        - attributeId
        - attributeName
        - entityId
        - entityType
        - stringValue
      type: object
      properties:
        accountId:
          type: integer
          description: The account identifier that owns this assignment.
          format: int32
          example: 12345
        assignmentId:
          maxLength: 36
          pattern: ^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$
          type: string
          description: Unique identifier for the assignment (UUID v7).
          format: uuid
          example: 019462a1-d9e5-7bcd-ac34-6a7b8c9d0e1f
        entityType:
          enum:
            - Vehicle
            - Driver
            - PoweredAsset
            - NonPoweredAsset
          type: string
          description: The type of entity assigned.
          example: Vehicle
        entityId:
          maxLength: 36
          pattern: ^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$
          type: string
          description: The identifier of the assigned entity.
          format: uuid
          example: 019462a1-d9e5-7bcd-ac34-6a7b8c9d0e1f
        stringValue:
          minLength: 1
          type: string
          description: The attribute value string associated with this assignment.
          example: North
        attributeId:
          maxLength: 36
          pattern: ^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$
          type: string
          description: The attribute identifier this assignment belongs to.
          format: uuid
          example: 019462a1-d9e5-7bcd-ac34-6a7b8c9d0e1f
        attributeName:
          minLength: 1
          type: string
          description: The name of the attribute this assignment belongs to.
          example: Region
      additionalProperties: false
      description: Represents a single assignment item in the search assignments response.
    ProblemError:
      type: object
      properties:
        detail:
          maxLength: 65519
          minLength: 0
          pattern: ^.{0,}$
          type: string
          description: A human-readable explanation of this error.
          nullable: true
          example: string
        pointer:
          maxLength: 2048
          minLength: 1
          pattern: ^.{0,}$
          type: string
          description: A pointer to locate the problem within the request's content using
            a JSON Pointer. Verizon extension to RFC 9457.
          nullable: true
          example: string
        debugId:
          maxLength: 2048
          minLength: 3
          pattern: ^.{0,}$
          type: string
          description: A unique error identifier string generated on the service-side and
            logged for correlation purposes. Verizon extension to RFC 9457.
          nullable: true
          example: string
      additionalProperties: false
    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.
  securitySchemes:
    STS:
      type: http
      description: Please enter '{token}'
      scheme: bearer
      bearerFormat: JWT
```
