GET
/
v3
/
units
curl --request GET \
  --url https://safe.dfda.earth/api/v3/units \
  --header 'Authorization: Bearer <token>'
[
  {
    "abbreviatedName": "<string>",
    "advanced": 123,
    "category": "Distance",
    "categoryId": 123,
    "categoryName": "<string>",
    "conversionSteps": [
      {
        "operation": "ADD",
        "value": 123
      }
    ],
    "id": 123,
    "image": "<string>",
    "manualTracking": 123,
    "maximumAllowedValue": 123,
    "maximumValue": 123,
    "minimumAllowedValue": 123,
    "minimumValue": 123,
    "name": "<string>",
    "unitCategory": {
      "id": 123,
      "name": "<string>",
      "standardUnitAbbreviatedName": "<string>"
    }
  }
]

Authorizations

Authorization
string
header
required

Enter your bearer token in the format Bearer access_token_here

Response

200
application/json
Successful operation
abbreviatedName
string
required

Unit abbreviation

category
enum<string>
required

Unit category

Available options:
Distance,
Duration,
Energy,
Frequency,
Miscellany,
Pressure,
Proportion,
Rating,
Temperature,
Volume,
Weight,
Count
conversionSteps
object[]
required

Conversion steps list

maximumValue
integer
required

Ex: 4

name
string
required

Unit name

unitCategory
object
required
advanced
integer

Ex: 1

categoryId
integer

Ex: 6

categoryName
string

Ex: Miscellany

id
integer

Ex: 29

image
string

Ex: https://static.quantimo.do/img/medical/png/pill.png

manualTracking
integer

Ex: 0

maximumAllowedValue
number

The maximum allowed value for measurements. While you can record a value above this maximum, it will be excluded from the correlation analysis.

minimumAllowedValue
number

The minimum allowed value for measurements. While you can record a value below this minimum, it will be excluded from the correlation analysis.

minimumValue
integer

Ex: 0