Update a category
patch
https://api.flactrum.com/v1/product-categories/{category}
| Required scope | categories.write |
| Success status | 200 |
| Returns | One ProductCategory object |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| category * | path | string | ULID of the record. |
Request body
| Field | Type | Description |
|---|---|---|
| name * | string | — |
| parent_id | string|null | Parent category. A category cannot be its own parent. |
| sort_order | integer | — |
| is_active | boolean | — |
| translations | object | Language code → fields. Only languages configured for the brand are accepted; an empty value removes that translation. Translatable here: name. |
Response fields
| Field | Type | Description |
|---|---|---|
| id | string | — |
| name | string | Follows ?lang. |
| slug | string|null | — |
| parent_id | string|null | — |
| sort_order | integer | — |
| is_active | boolean | — |
| product_count | integer | — |
| translations | object | All translations keyed by language code. |
| created_at | string | — |
| updated_at | string | — |
Examples
No recorded example yet.