Create UnitType
Create UnitType.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
baseUnit
The reference unit for this type.
name
The name of this unit type, e.g. "Volume".
overrideIsConcentration
When true, forces this UnitType to be treated as a concentration type regardless of its terms. When false, the classification is determined by the UnitType's terms. Mutually exclusive with overrideIsContainerQuantity.
overrideIsContainerQuantity
When true, forces this UnitType to be treated as a container quantity type regardless of its terms. When false, the classification is determined by the UnitType's terms. Mutually exclusive with overrideIsConcentration.
formula
Formula defining this type in terms of other units.
Response
Created
__typename
archiveReason
archived
baseUnit
The reference unit. All other units' conversionFactors are relative to this unit. Null for unit
types with no units yet.
createdAt
formula
Defines this unit type in terms of other units for derived types, e.g. Liter = decimeter cubed.
id
modifiedAt
name
The user-facing name, e.g. “Volume” or “Molar Concentration”.
overrideIsConcentration
When true, forces this UnitType to be treated as a concentration type regardless of its terms. When false, the classification is determined by the UnitType’s terms. Mutually exclusive with overrideIsContainerQuantity.
overrideIsContainerQuantity
When true, forces this UnitType to be treated as a container quantity type regardless of its terms. When false, the classification is determined by the UnitType’s terms. Mutually exclusive with overrideIsConcentration.
terms
The dimensional composition of this unit type as a list of SI base dimensions with exponents.
units
All units belonging to this unit type.
Errors
400
Unit Type Create Request Bad Request Error
403
Unit Type Create Request Forbidden Error
404
Unit Type Create Request Not Found Error
409
Unit Type Create Request Conflict Error
429
Unit Type Create Request Too Many Requests Error
500
Unit Type Create Request Internal Server Error