Catalog Attribute — Create
Creates a new product attribute. Equivalent to POST /api/admin/catalog/attributes.
Operation
| Operation | Type | Purpose |
|---|---|---|
createAdminAttribute | Mutation | Create a new attribute |
Input fields
Same field set as the REST request body — code, admin_name, type, swatch_type, the boolean flag fields, validation, default_value, position, translations, options. See the REST page for the full table.
Notes
- The mutation returns the attribute IRI (
id) plus_id. For the full detail payload, follow up with theadminAttributequery or the RESTGET /api/admin/catalog/attributes/{id}endpoint. - Field names in the input are snake_case (
admin_name,is_filterable) — the project's name-converter does NOT remap multi-word camelCase keys onto the create DTO.

