Update a category
Updates an existing category. Requires both the category uuid (in the path)
and the new config object in the request body.
The config replaces the existing multilingual configuration. All other fields
(asset_id, status, icon) are optional and only update when provided.
Path Parameters
UUID of the category to update.
Body Parameters
UUID of the image asset to associate with this category.
Whether the category is active and visible.
Icon data or URL for category display. Set to null to clear.
Multilingual configuration keyed by language code (e.g. en, de, es).
Must contain between 1 and 10 language entries. Language codes must match
the languages enabled on your account.
{
"config": {
"en": {
"title": "Updated Electronics"
}
}
}
Responses
Category updated successfully
Validation or business logic error. Returned when:
- Missing required
configfield - Missing or invalid
uuid(path parameter) - Missing required
titlewithin a language config - Invalid UUID format for
asset_id - Unsupported language code in
configkeys - Field length violations (e.g.
titleshorter than 2 or longer than 240 characters) - Invalid
slugpattern (spaces, special characters, orsystem-prefix) - Additional/unknown properties in the request body
- Type mismatches (e.g.
statussent as string instead of boolean)
Error codes:
| Code | Description |
|---|---|
| 1002 | Category or asset not found |
| 10156 | Category name invalid (empty, missing, or nil title) |
Unauthorized – invalid or missing Bearer token