curl --request GET \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/units/{externalId} \
--header 'Authorization: Bearer <token>'{
"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"
}
]
}Retrieve a single unit by its external ID.
curl --request GET \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/units/{externalId} \
--header 'Authorization: Bearer <token>'{
"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"
}
]
}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.
External ID of the unit
Response with a single unit
Show child attributes
Was this page helpful?