Skip to content

Category — Update (and Move)

Updates an existing category. Mirrors Catalog → Categories → Edit in the Bagisto admin panel.

No separate move endpoint

Move semantics are part of the standard update payload. To re-parent a category or change its sort position, PUT the category with the new parent_id and position. This mirrors the Bagisto admin panel which has no dedicated "move" action either — parent_id + position are ordinary editable fields on the category form.

Endpoint

EndpointMethod
/api/admin/catalog/categories/{id}PUT

{id} must be a positive integer.

Request body

FieldTypeRequiredNotes
localestringnoLocale being edited (defaults to the app locale).
positionintegeryesDisplay order.
attributesinteger[]yesList of filterable attribute ids.
parent_idinteger|nullnoNew parent — supply to re-parent (move) the category.
statusintegerno0 / 1.
<locale>objectyesLocale-nested translatable fields — see below.

Locale-nested translatable fields

Translatable fields go inside a key matching the locale code (e.g. "en"):

FieldNotes
slugRequired.
nameRequired.
descriptionRequired when display_mode is description_only or products_and_description.
meta_title / meta_description / meta_keywordsOptional SEO fields.

Response

200 OK. Same shape as GET /api/admin/catalog/categories/{id}.

Errors

HTTPCause
401 UnauthorizedMissing or invalid Bearer token
404 Not FoundThe category does not exist
422 Unprocessable EntityLocale-nested validation failure

Released under the MIT License.