Download OpenAPI specification:Download
Units API provides an standardized list of units that can be used in Cognite Data Fusion. The content this API will serve is based on the CDF Units Catalog.
Retrieve units
cdf-version | string (Cdf-Version) Examples: alpha beta |
X-Cdp-App (string) or X-Cdp-App (null) (X-Cdp-App) Examples: cdf-test-app A name of the API client |
required | Array of objects (Items) |
Ignoreunknownids (boolean) or Ignoreunknownids (null) (Ignoreunknownids) Default: false Ignore IDs and external IDs that are not found |
{- "items": [
- {
- "externalId": "string"
}
], - "ignoreUnknownIds": false
}
{- "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",
}
]
}
Get all systems
cdf-version | string (Cdf-Version) Examples: alpha beta |
X-Cdp-App (string) or X-Cdp-App (null) (X-Cdp-App) Examples: cdf-test-app A name of the API client |
{- "items": [
- {
- "name": "SI",
- "quantities": [
- {
- "name": "Temperature",
- "unitExternalId": "temperature:deg_c"
}
]
}
]
}
Retrieve unit by externalId
external_id required | string (External Id) |
cdf-version | string (Cdf-Version) Examples: alpha beta |
X-Cdp-App (string) or X-Cdp-App (null) (X-Cdp-App) Examples: cdf-test-app A name of the API client |
{- "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",
}
]
}
List all the available units in the units-catalog repository.
cdf-version | string (Cdf-Version) Examples: alpha beta |
X-Cdp-App (string) or X-Cdp-App (null) (X-Cdp-App) Examples: cdf-test-app A name of the API client |
{- "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",
}
]
}