# updateProductAttribute

## Overview

Updates editable metadata on a global ProductAttribute — the attribute's `name`. The attribute's `code` is not editable through this resolver (structural changes require a new attribute). The change is global: any product that has the attribute assigned will reflect the new `name`.

Inputs: `id` (required, attribute ID) and `name` (the editable field).

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

## Modules Commands Used

- [product-management] UpdateProductAttribute

## Exception Handling

The resolver explicitly cases `PRODUCT_MANAGEMENT_ATTRIBUTE_NOT_FOUND` and rethrows any other erp-kit error untouched.

| Error Code | Description |
| --- | --- |
| PRODUCT_MANAGEMENT_ATTRIBUTE_NOT_FOUND | The specified attribute does not exist |
