productCategoryUpdate
Update a product category. The productCategoryUpdate 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 productCategoryUpdate ($id: ID!, $attributes: ProductCategoryAttributes!) {
productCategoryUpdate (id: $id, attributes: $attributes) {
errors
productCategory {
createdAt
id
name
updatedAt
}
}
}
ArgumentsLink to Arguments section
{
"id": "456123",
"attributes": {
"name": ""
}
}
| Name | Type | Description |
|---|---|---|
| id | ID | |
| attributes | ProductCategoryAttributes |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| errors | List (String) | |
| productCategory | ProductCategory |