---
title: "Update/create several measurement families"
method: PATCH
path: "/api/rest/v1/measurement-families"
tags: ["Measurement family"]
---

# Update/create several measurement families

`PATCH /api/rest/v1/measurement-families`

## Request

- Base URL: `http://demo.akeneo.com`
- URL: `http://demo.akeneo.com/api/rest/v1/measurement-families`
- Auth: none declared

This endpoint allows you to update and/or create several measurement families at once.

## Request body

- object[]
  - `code` string, required: Measurement family code
  - `labels` object: Measurement family labels for each locale
    - `localeCode` string: Measurement family label for the locale `localeCode`
  - `standard_unit_code` string, required: Unit code used as the standard unit for this measurement family
  - `units` object, required: Measurement units for this family with their conversion operations. More details <a href='/concepts/target-market-settings.html#focus-on-the-units'>here</a>.
    - `unitCode` object
      - `code` string: Measurement unit code. More details <a href='/concepts/target-market-settings.html#focus-on-the-units'>here</a>.
      - `labels` object: Unit labels for each locale. More details <a href='/concepts/target-market-settings.html#focus-on-the-units'>here</a>.
        - `localeCode` string: Unit label for the locale `localeCode`
      - `convert_from_standard` object[]: Calculation to convert the unit from the standard unit. More details <a href='/concepts/target-market-settings.html#focus-on-the-units'>here</a>.
        - `operator` 'mul' | 'div' | 'add' | 'sub': Operator for a conversion operation to convert the unit in the standard unit
        - `value` string: Value for a conversion operation to convert the unit in the standard unit
      - `symbol` string: Measurement unit symbol. More details <a href='/concepts/target-market-settings.html#focus-on-the-units'>here</a>.

## Response `200`

OK

- object[]
  - `code` string: Resource code
  - `status_code` integer: HTTP status code, see <a href="/documentation/responses.html#client-errors">Client errors</a> to understand the meaning of each code
  - `message` string: Message explaining the error
  - `errors` object[]: List of errors
    - `property` string
    - `message` string

## Other responses

- `401`: Authentication required
- `413`: Request Entity Too Large
- `415`: Unsupported Media type

---

[API](https://skmtc.dev/akeneo/apis/akeneo-pim-rest-api.md) - [All operations](https://skmtc.dev/akeneo/apis/akeneo-pim-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/akeneo/apis/akeneo-pim-rest-api/revisions/d8bda9b93b59?raw)
