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

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

# CreateAttributeDto

DTO representing a single attribute to be created.

## OpenAPI definition

```yaml
openapi: 3.0.4
info:
  title: Attribute Api
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
components:
  schemas:
    CreateAttributeDto:
      required:
        - name
        - stringValues
      type: object
      properties:
        name:
          maxLength: 30
          minLength: 1
          pattern: ^(?=.*[a-zA-Z0-9])[a-zA-Z0-9 \-_:]{1,30}$
          type: string
          description: The name of the attribute. Must be unique within the account
            (case-insensitive uniqueness, stored as-is).
          example: Fleet Region
        description:
          maxLength: 1000
          minLength: 0
          pattern: ^.{0,}$
          type: string
          description: Optional description of the attribute.
          nullable: true
          example: Geographical region assigned to fleet vehicles
        externalIds:
          maxItems: 1
          minItems: 0
          type: array
          items:
            maxLength: 96
            minLength: 0
            pattern: ^(?=.{3,96}$)[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+$
            type: string
          description: Optional external identifiers. Maximum 1 per attribute, format
            'namespace:identifier', max 100 chars.
          nullable: true
          example:
            - erp-system:region-001
        stringValues:
          maxItems: 100
          minItems: 1
          type: array
          items:
            maxLength: 30
            minLength: 0
            pattern: ^(?=.*[a-zA-Z0-9])[a-zA-Z0-9 \-_:]{1,30}$
            type: string
          description: Required list of allowed string values for this attribute. Minimum
            1, maximum 100 values, each max 30 chars.
          example:
            - North
            - South
            - East
            - West
      additionalProperties: false
      description: DTO representing a single attribute to be created.
```
