> ## Documentation Index
> Fetch the complete documentation index at: https://docs.closient.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Edit Product Classification (GPC)

> Update a product's GS1 Global Product Classification (GPC) codes — the programmatic equivalent of the dashboard's classification page.

Programmatic equivalent of the dashboard's `products/<gtin>/classification/`
page.

## When to use

* A brand owner needs to set or correct a product's GS1 GPC segment, family,
  class, or brick code.

## Auth

`X-API-Key` header or OAuth token with `products:write` scope. The caller
must be an `OWNER`, `MANAGER`, or `EDITOR` on the organization that owns the
GTIN.

## Flow

```
PATCH /products/api/v1/products/{gtin}
```

Every field is optional; omit or send `null` to leave unchanged.

| Field              | Notes                                                 |
| ------------------ | ----------------------------------------------------- |
| `gpc_segment_code` | Top-level GPC classification.                         |
| `gpc_family_code`  | Parent of class.                                      |
| `gpc_class_code`   | Parent of brick.                                      |
| `gpc_brick_code`   | 8-digit GS1 GPC brick code — the most specific level. |

Returns `200` with the updated `ProductOut`, `403` for a caller without the
required role, `404` if the GTIN isn't owned by the caller's organization.

## Related skills

This is the same `PATCH` endpoint as `edit-product-basic-info` and
`edit-product-dimensions` — the dashboard splits it across three pages, but a
single request can set fields from all three at once.
