Skip to content

Attribute Family — Update

Updates an existing attribute family. Mirrors Catalog → Attribute Families → Edit in the Bagisto admin panel — same partial-update semantics for nested attribute groups.

Endpoint

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

{id} must be a positive integer.

Request body

Top-level fields are code (required), name (required), and attribute_groups (object, optional).

attribute_groups semantics

The attribute_groups field is an object keyed by either a numeric existing group id or a group_* placeholder for a new group:

Key shapeEffect
"11" (numeric id)Updates the existing group with id 11
"group_new_1"Creates a new group
existing id omitted from the payloadDeletes that group

Each value is a group object:

FieldTypeNotes
code / name / column / positionscalarsSame fields as on Create
custom_attributesarray[{ id, position }, ...] — full replacement set for the group

Response

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

Errors

HTTPCause
401 UnauthorizedMissing or invalid Bearer token
404 Not FoundThe family does not exist
422 Unprocessable Entitycode duplicate or other body validation issue

Released under the MIT License.