v1

latestSwagger 2.02026-07-13137761.0 MB
Measurement family

Update/create several measurement families

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

patch/api/rest/v1/measurement-families

Request body

codestring required

Measurement family code

standard_unit_codestring required

Unit code used as the standard unit for this measurement family

Example request

[
  {
    "code": "AREA",
    "labels": {
      "en_US": "Area",
      "fr_FR": "Surface"
    },
    "standard_unit_code": "SQUARE_METER",
    "units": {
      "SQUARE_MILLIMETER": {
        "code": "SQUARE_MILLIMETER",
        "labels": {
          "en_US": "Square millimeter",
          "fr_FR": "Millimètre carré"
        },
        "convert_from_standard": [
          {
            "operator": "mul",
            "value": "0.000001"
          }
        ],
        "symbol": "mm²"
      },
      "SQUARE_CENTIMETER": {
        "code": "SQUARE_CENTIMETER",
        "labels": {
          "en_US": "Square centimeter",
          "fr_FR": "Centimètre carré"
        },
        "convert_from_standard": [
          {
            "operator": "mul",
            "value": "0.0001"
          }
        ],
        "symbol": "cm²"
      },
      "SQUARE_METER": {
        "code": "SQUARE_METER",
        "labels": {
          "en_US": "Square meter",
          "fr_FR": "Mètre carré"
        },
        "convert_from_standard": [
          {
            "operator": "mul",
            "value": "1"
          }
        ],
        "symbol": "m²"
      }
    }
  }
]

Response

OK

codestring

Resource code

status_codeinteger

HTTP status code, see <a href="/documentation/responses.html#client-errors">Client errors</a> to understand the meaning of each code

messagestring

Message explaining the error