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

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

# AssignEntitiesToAttributeInputDto

Input DTO for the assign entities to attribute endpoint.

## OpenAPI definition

```yaml
openapi: 3.0.4
info:
  title: Attribute Api
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
components:
  schemas:
    EntityAssignmentItemDto:
      required:
        - entityId
        - entityType
        - stringValue
      type: object
      properties:
        entityType:
          minLength: 1
          enum:
            - Vehicle
            - Driver
            - PoweredAsset
            - NonPoweredAsset
          type: string
          description: "The type of entity being assigned. Accepted values: vehicle,
            driver, powered_asset, non_powered_asset."
          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 entity being assigned.
          format: uuid
          example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
        stringValue:
          maxLength: 30
          minLength: 1
          pattern: ^(?=.*[a-zA-Z0-9])[a-zA-Z0-9 \-_:]{1,30}$
          type: string
          description: The human-readable attribute value string to assign. Resolved to an
            internal attribute_value_id.
          example: North
      additionalProperties: false
      description: DTO representing a single entity assignment item.
    AssignEntitiesToAttributeInputDto:
      required:
        - items
      type: object
      properties:
        items:
          maxItems: 1000
          minItems: 1
          type: array
          items:
            $ref: "#/components/schemas/EntityAssignmentItemDto"
          description: Collection of entity assignments. Minimum 1, maximum 10,000 items
            per request.
      additionalProperties: false
      description: Input DTO for the assign entities to attribute endpoint.
```
