Schema Documentation
CreateProductCategoryInput
Description
Input for the createProductCategory mutation.
Fields
Input Field | Description |
---|---|
aliasOf - String | The slug that the product_cat will be an alias of |
clientMutationId - String | This is an ID that can be passed to a mutation by the client to track the progress of mutations and catch possible duplicate mutation submissions. |
description - String | The description of the product_cat object |
name - String! | The name of the product_cat object to mutate |
parentId - ID | The ID of the product_cat that should be set as the parent |
slug - String | If this argument exists then the slug will be checked to see if it is not an existing valid term. If that check succeeds (it is not a valid term), then it is added and the term id is given. If it fails, then a check is made to whether the taxonomy is hierarchical and the parent argument is not empty. If the second check succeeds, the term will be inserted and the term id will be given. If the slug argument is empty, then it will be calculated from the term name. |
Example
{"aliasOf":"xyz789","clientMutationId":"abc123","description":"abc123","name":"xyz789","parentId":4,"slug":"abc123"}