productCategoriesAdd
Create a ProductCategory.
Auth · x-app-token · required permission manageProducts
Related: productCategoriesEdit, productCategoriesRemove, productCategories
productCategoriesAdd(name: String!, code: String!, description: String, parentId: String, slug: String, attachment: AttachmentInput, status: String, seo: JSON): ProductCategoryArguments
Display name (required).
Stable machine code, unique within the workspace (required).
Category description.
Parent ProductCategory id. Omit to create a root category.
URL-friendly identifier. Auto-generated from name when omitted.
Category image.
Lifecycle status, e.g. active, disabled, archived. Default: active.
SEO title, description, slug, and keywords, as JSON.
Returns
Display name.
Category description.
Parent ProductCategory id, or empty for a root category.
Stable machine code, unique within the workspace.
Materialized path used to resolve descendants. Read-only; derived from parentId.
URL-friendly identifier.
Category image.
Lifecycle status, e.g. active, disabled, archived.
Whether this category has no parent.
Number of products directly assigned to this category.
SEO title, description, slug, and keywords for storefront pages.