Skip to main content
POST
/
units
/
byids
JavaScript SDK
const units = await client.units.retrieve([{ externalId: 'temperature:deg_c' }, { externalId: 'pressure:bar' }]);
{
  "items": [
    {
      "externalId": "temperature:deg_c",
      "name": "DEG_C",
      "longName": "degree Celsius",
      "symbol": "°C",
      "aliasNames": [
        "°C",
        "C",
        "deg C",
        "degC",
        "DegC"
      ],
      "quantity": "Temperature",
      "conversion": {
        "multiplier": 1,
        "offset": 273.15
      },
      "source": "qudt.org",
      "sourceReference": "http://qudt.org/vocab/unit/DEG_C"
    }
  ]
}

Authorizations

Authorization
string
header
required

Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.

Body

application/json
items
ExternalIdRef · object[]
required
ignoreUnknownIds
boolean | null
default:false

Ignore external IDs that are not found. If set to true, no error will be thrown if an external ID is not found.

Example:

false

Response

Response with a list of units

items
Unit · object[]
required
Last modified on April 23, 2026