Units

Convert quantity value from one unit to all other related units

Convert quantity <strong>{value}</strong> from one unit to all other available units based on the given <strong>{fromUnitId}</strong>. <br> Units have to have <strong>{fromUnitId}</strong> defined as base unit to be considered for conversion.

get/pimcore-studio/api/unit/quantity-value/convert-all

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /pimcore-studio/api/unit/quantity-value/convert-all
  • Auth: none declared

Query parameters

fromUnitIdstring required
Example:Example string

Id of the unit to convert from

valuenumber required
Example:3.14

Value to convert.

Response

Converted quantity value

additionalAttributesobject

AdditionalAttributes

originalValueinteger required

Original Value

fromUnitIdstring required

From Unit Id

Example response

{
  "originalValue": 5,
  "fromUnitId": "m",
  "convertedValues": [
    {
      "unitAbbreviation": "m",
      "unitLongName": "Meter",
      "convertedValue": 160
    }
  ]
}

Changes

No recorded changes to this operation across all 2 revisions of this API.