Skip to main content
MUTATION
productCategoriesEdit(_id: String!, name: String!, code: String!, description: String, parentId: String, slug: String, attachment: AttachmentInput, status: String, seo: JSON): ProductCategory

Arguments

_id
String!
required

Category id to update (required).

name
String!
required

Display name (required).

code
String!
required

Stable machine code, unique within the workspace (required).

description
String

Category description.

parentId
String

Parent ProductCategory id. Omit to create a root category.

slug
String

URL-friendly identifier. Auto-generated from name when omitted.

attachment

Category image.

status
String

Lifecycle status, e.g. active, disabled, archived. Default: active.

seo
JSON

SEO title, description, slug, and keywords, as JSON.

_id
String!
name
String

Display name.

description
String

Category description.

parentId
String

Parent ProductCategory id, or empty for a root category.

code
String!

Stable machine code, unique within the workspace.

order
String!

Materialized path used to resolve descendants. Read-only; derived from parentId.

slug
String

URL-friendly identifier.

workspaceId
String
attachment

Category image.

status
String

Lifecycle status, e.g. active, disabled, archived.

isRoot
Boolean

Whether this category has no parent.

productCount
Int

Number of products directly assigned to this category.

SEO title, description, slug, and keywords for storefront pages.

createdAt
Date
updatedAt
Date
Mutation
Variables
Response
آخر تعديل في ١١ أغسطس ٢٠٢٦