---
title: "Remove string values from an attribute"
url: "https://developers.vzconnect.com/apis/attribute-api/versions/5171af26-732a-43bc-84a1-1d89d361a339/operations/removeAttributeStringValues"
---

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

# Remove string values from an attribute

`POST` `/attribute/v1/attributes/{attributeId}/string-values/remove-items`

Operation ID: `removeAttributeStringValues`

Removes string values from an existing attribute.

## Path parameters

- `attributeId` (string, required) - The attribute identifier — either a UUID v7 or an external identifier.

## Request body

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

## Responses

- `204` - Attribute string values removed successfully.
- `400` - Bad Request
- `401` - Unauthorized
- `403` - Forbidden
- `404` - Attribute or attribute values not found for the given identifier within the account.
- `415` - Unsupported Media Type
- `422` - Cannot remove attribute values because one or more have associated entity assignments.
- `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/{attributeId}/string-values/remove-items:
    post:
      tags:
        - Attribute API
      summary: Remove string values from an attribute
      description: Removes string values from an existing attribute.
      operationId: removeAttributeStringValues
      parameters:
        - name: attributeId
          in: path
          description: The attribute identifier — either a UUID v7 or an external
            identifier.
          required: true
          schema:
            maxLength: 96
            minLength: 3
            pattern: ^(^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$|^(?=.{3,96}$)[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+$)$
            type: string
      requestBody:
        description: Collection of attribute value IDs to remove (1-100 items).
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/RemoveAttributeStringValuesInputDto"
          text/json:
            schema:
              $ref: "#/components/schemas/RemoveAttributeStringValuesInputDto"
          application/*+json:
            schema:
              $ref: "#/components/schemas/RemoveAttributeStringValuesInputDto"
      responses:
        "204":
          description: Attribute string values removed successfully.
        "400":
          description: Bad Request
          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"
        "404":
          description: Attribute or attribute values not found for the given identifier
            within 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: Cannot remove attribute values because one or more have associated
            entity assignments.
          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:
    RemoveAttributeStringValuesInputDto:
      required:
        - items
      type: object
      properties:
        items:
          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: Collection of attribute string values to remove. Minimum 1, maximum
            100 non-default GUIDs.
          example:
            - green
            - white
      additionalProperties: false
      description: Input DTO for removing string values from an existing attribute.
    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).
    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
  securitySchemes:
    STS:
      type: http
      description: Please enter '{token}'
      scheme: bearer
      bearerFormat: JWT
```
