productCategoryCreate
Create a product category. The productCategoryCreate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.
Scope required: product:write
For a complete list of input attributes see the ProductCategoryAttributes type
mutation productCategoryCreate ($attributes: ProductCategoryAttributes!) {
productCategoryCreate (attributes: $attributes) {
errors
productCategory {
createdAt
id
name
updatedAt
}
}
}
ArgumentsLink to Arguments section
{
"attributes": {
"name": ""
}
}
| Name | Type | Description |
|---|---|---|
| attributes | ProductCategoryAttributes |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| errors | List (String) | |
| productCategory | ProductCategory |