Skip to content

Catalog Attribute — Create

Creates a new product attribute. Equivalent to POST /api/admin/catalog/attributes.

Operation

OperationTypePurpose
createAdminAttributeMutationCreate 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 the adminAttribute query or the REST GET /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.

Released under the MIT License.