productCategoriesEdit
Update an existing ProductCategory by id.
Accepts the same arguments as productCategoriesAdd; omit any
field to leave its current value unchanged.
Auth · x-app-token · required permission manageProducts
Related: productCategoriesAdd, productCategoriesRemove
productCategoriesEdit(_id: String!, name: String!, code: String!, description: String, parentId: String, slug: String, attachment: AttachmentInput, status: String, seo: JSON): ProductCategoryArguments
Category id to update (required).
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.