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

Recorded from the test suite — these are real requests and their real responses.

curl -X PATCH 'https://api.flactrum.com/v1/product-categories/01m43mxnk7qkr5bkvngdz13y3w' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "sort_order": 9
}'

HTTP 200 · application/json

{
    "data": {
        "id": "01m43mxnk7qkr5bkvngdz13y3w",
        "name": "Sıcak kahve",
        "slug": "sicak-kahve",
        "parent_id": null,
        "sort_order": 9,
        "is_active": true,
        "product_count": 1,
        "translations": [],
        "created_at": "2026-10-04T14:26:09+00:00",
        "updated_at": "2026-10-04T14:26:09+00:00"
    }
}