---
title: "Update an attribute family"
method: PUT
path: "/catalog/families/{id}"
tags: ["Admin Catalog: Attribute Families"]
---

# Update an attribute family

`PUT /catalog/families/{id}`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/catalog/families/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/catalog/families/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates an attribute family. Inside `attribute_groups`, items keyed by numeric id update existing groups; items keyed by `group_*` create new groups; omitted existing ids are deleted.

## Path parameters

- `id` integer, required

## Request body

- object
  - `code` string, required
  - `name` string, required
  - `attribute_groups` object

## Response `200`

Family updated.

## Other responses

- `400`: Invalid input
- `404`: Not found
- `422`: Validation failure.

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
