Overview / Catalog / Update a category

Update a category

patch https://api.flactrum.com/v1/product-categories/{category}
Required scope categories.write
Success status200
Returns One ProductCategory object

Parameters

NameInTypeDescription
category * path string ULID of the record.

Request body

FieldTypeDescription
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

FieldTypeDescription
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.