---
title: "Update/create a family"
method: PATCH
path: "/api/rest/v1/families/{code}"
tags: ["Family"]
---

# Update/create a family

`PATCH /api/rest/v1/families/{code}`

This endpoint allows you to update a given family. Know more about <a href="/documentation/update.html#update-behavior">Update behavior</a>. Note that if no family exists for the given code, it creates it.

## Path parameters

- `code` string, required

## Request body

- object
  - `code` string, required — Family code
  - `attribute_as_label` string, required — Attribute code used as label
  - `attribute_as_image` string — Attribute code used as the main picture in the user interface (only since v2.0)
  - `attributes` string[] — Attributes codes that compose the family
  - `attribute_requirements` object — Attributes codes of the family that are required for the completeness calculation for each channel
    - `channelCode` string[]
  - `labels` object — Family labels for each locale
    - `localeCode` string — Family label for the locale `localeCode`

## Response `201`

Created

## Other responses

- `204` — No content to return
- `400` — Bad request
- `401` — Authentication required
- `403` — Access forbidden
- `415` — Unsupported Media type
- `422` — Unprocessable entity

---

[API](https://skmtc.net/akeneo/apis/akeneo-pim-rest-api.md) · [All operations](https://skmtc.net/akeneo/apis/akeneo-pim-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeneo/akeneo-pim-rest-api/versions/d8bda9b93b59/schema)
