# createProductAttributeValue

## Overview

Creates a new value for a product attribute (e.g., "White" for Color, "Small (S)" for Size). Values are global and can be assigned to multiple products. Required inputs are `attributeId` and `label` (label is immutable post-creation; variants depend on it for identity).

The resolver wraps the erp-kit `CreateProductAttributeValue` command.

## Modules Commands Used

- [product-management] CreateProductAttributeValue

## Exception Handling

| Error Code | Description |
| --- | --- |
| PRODUCT_MANAGEMENT_ATTRIBUTE_NOT_FOUND | The specified attribute does not exist |
| PRODUCT_MANAGEMENT_DUPLICATE_VALUE | A value with this label already exists for the attribute |
| PRODUCT_MANAGEMENT_INVALID_LABEL | Label must not be empty |
