Catalog Attribute Options — Create / Update / Delete
GraphQL counterpart to the REST attribute-options endpoints.
Operations
| Operation | Type | Purpose |
|---|---|---|
createAdminAttributeOption | Mutation | Add an option to a select/multiselect/checkbox attribute |
updateAdminAttributeOption | Mutation | Partial update of an option |
deleteAdminAttributeOption | Mutation | Remove an option |
All three mutations carry extra args alongside input:
attributeId: Int!— required on every mutationoptionId: Int!— required on update and delete
Input — Create / Update
| Field | Type | Notes |
|---|---|---|
admin_name | String | Internal admin label (required on create) |
sort_order | Int | Display order |
swatch_value | String | Hex color / image path / display text depending on swatch type |
translations | JSON | Map of locale → { label } |
Errors
| Condition | Message |
|---|---|
Attribute is not select/multiselect/checkbox | This attribute type does not support options. |
| Delete refused — option in use | This option is used by N product(s) and cannot be deleted. |
| Unknown id | Attribute option not found. |

