productCategoryDelete
Delete a product category. The productCategoryDelete mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.
Scope required: product:write
mutation productCategoryDelete ($id: ID!) {
productCategoryDelete (id: $id) {
errors
productCategory {
createdAt
id
name
updatedAt
}
}
}
Arguments
{
"id": "456123"
}
| Name | Type | Description |
|---|---|---|
| id | ID |
Response
| Name | Type | Description |
|---|---|---|
| errors | String | |
| productCategory | ProductCategory |