# productCategoryUpdate

Update a product category

**Scope required:** product:write

For a complete list of input attributes see the [ProductCategoryAttributes](https://docs.bunny.com/developer/api-reference/types/productcategoryattributes) type

```graphql
mutation productCategoryUpdate ($id: ID!, $attributes: ProductCategoryAttributes!) {
  productCategoryUpdate (id: $id, attributes: $attributes) {
      errors
      productCategory {
        createdAt
        id
        name
        updatedAt
      }
  }
}
```

## Arguments

```json
{
  "id": "456123",
  "attributes": {
    "name": ""
  }
}
```

| Name       | Type                                                                                                        | Description |
| ---------- | ----------------------------------------------------------------------------------------------------------- | ----------- |
| id         | ID                                                                                                          |             |
| attributes | [ProductCategoryAttributes](https://docs.bunny.com/developer/api-reference/types/productcategoryattributes) |             |

## Response

| Name            | Type                                                                                    | Description |
| --------------- | --------------------------------------------------------------------------------------- | ----------- |
| errors          | List (String)                                                                           |             |
| productCategory | [ProductCategory](https://docs.bunny.com/developer/api-reference/types/productcategory) |             |
