Skip to main content

categoryCreate Mutation

Creates a new category.

Requires the MANAGE_PRODUCTSpermission.
categoryCreate(
input: CategoryInput!
parent: ID
): CategoryCreate
Details
type CategoryCreate {
productErrors: [ProductError!]! @deprecated
errors: [ProductError!]!
category: Category
}

Arguments​

input ● CategoryInput!​

Fields required to create a category.

parent ● ID​

ID of the parent category. If empty, category will be top level category.

Type​

CategoryCreate​

Creates a new category.

Requires the MANAGE_PRODUCTSpermission.