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

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

# Create attributes

`POST` `/attribute/v1/attributes/add-items`

Operation ID: `addAttributesInBulk`

Creates multiple attributes in a single atomic operation.

## Request body

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

## Responses

- `200` - Attributes created successfully. Returns the created attributes.
- `400` - Invalid request. Validation errors in the request body.
- `401` - Unauthorized
- `403` - Forbidden
- `409` - Conflict. One or more attribute names or external IDs already exist in the account.
- `415` - Unsupported Media Type
- `422` - Unprocessable Content
- `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/attributes/add-items:
    post:
      tags:
        - Attribute API
      summary: Create attributes
      description: Creates multiple attributes in a single atomic operation.
      operationId: addAttributesInBulk
      requestBody:
        description: Collection of attributes to create (1-1000 items).
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/AddAttributesInBulkInputDto"
          text/json:
            schema:
              $ref: "#/components/schemas/AddAttributesInBulkInputDto"
          application/*+json:
            schema:
              $ref: "#/components/schemas/AddAttributesInBulkInputDto"
      responses:
        "200":
          description: Attributes created successfully. Returns the created attributes.
          content:
            text/plain:
              schema:
                $ref: "#/components/schemas/AddAttributesInBulkOutputDto"
            application/json:
              schema:
                $ref: "#/components/schemas/AddAttributesInBulkOutputDto"
            text/json:
              schema:
                $ref: "#/components/schemas/AddAttributesInBulkOutputDto"
        "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"
        "409":
          description: Conflict. One or more attribute names or external IDs already exist
            in the account.
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/VerizonProblemDetails"
        "415":
          description: Unsupported Media Type
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/VerizonProblemDetails"
        "422":
          description: Unprocessable Content
          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:
    AddAttributesInBulkInputDto:
      required:
        - items
      type: object
      properties:
        items:
          maxItems: 1000
          minItems: 1
          type: array
          items:
            $ref: "#/components/schemas/CreateAttributeDto"
          description: Collection of attributes to create. Minimum 1, maximum 1000 items
            per request.
      additionalProperties: false
      description: Input DTO for bulk attribute creation endpoint.
    AddAttributesInBulkOutputDto:
      required:
        - items
      type: object
      properties:
        items:
          maxItems: 1000
          minItems: 1
          type: array
          items:
            $ref: "#/components/schemas/AttributeOutputDto"
          description: Collection of successfully created attributes.
      additionalProperties: false
      description: Output DTO for bulk attribute creation 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).
    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.
    AttributeOutputDto:
      required:
        - attributeId
        - createdAt
        - name
        - updatedAt
        - values
      type: object
      properties:
        attributeId:
          maxLength: 36
          minLength: 0
          pattern: ^.{0,}$
          type: string
          description: Unique identifier for the attribute (UUID v7).
          example: 019462a1-b7c3-7def-8a12-4e5f6a7b8c9d
        name:
          maxLength: 30
          minLength: 0
          pattern: ^.{0,}$
          type: string
          description: The name of the attribute.
          example: Fleet Region
        description:
          maxLength: 1000
          minLength: 0
          pattern: ^.{0,}$
          type: string
          description: Description of the attribute (nullable).
          nullable: true
          example: Geographical region assigned to fleet vehicles
        values:
          maxItems: 100
          minItems: 0
          type: array
          items:
            $ref: "#/components/schemas/AttributeValueOutputDto"
          description: Allowed string values for this attribute.
        createdAt:
          maxLength: 28
          minLength: 20
          pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\.[0-9]{1,7})?Z$
          type: string
          description: Timestamp when the attribute was created (UTC).
          format: date-time
          example: 2026-03-15T10:30:00Z
        updatedAt:
          maxLength: 28
          minLength: 20
          pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\.[0-9]{1,7})?Z$
          type: string
          description: Timestamp when the attribute was last modified (UTC).
          format: date-time
          example: 2026-04-02T14:45:00Z
        externalIds:
          maxItems: 1
          minItems: 0
          type: array
          items:
            maxLength: 96
            minLength: 3
            pattern: ^(?=.{3,96}$)[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+$
            type: string
          description: External identifiers for this attribute
          nullable: true
          example:
            - string
      additionalProperties: false
      description: Output DTO representing a created attribute.
    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
    AttributeValueOutputDto:
      required:
        - attributeValueId
        - value
      type: object
      properties:
        attributeValueId:
          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 attribute value (UUID v7).
          format: uuid
          example: 019462a1-c8d4-7abc-9b23-5f6a7b8c9d0e
        value:
          maxLength: 30
          minLength: 0
          pattern: ^.{0,}$
          type: string
          description: The string value.
          example: North
      additionalProperties: false
      description: Output DTO representing a single attribute value.
  securitySchemes:
    STS:
      type: http
      description: Please enter '{token}'
      scheme: bearer
      bearerFormat: JWT
```
