Skip to navigation

Update UnitType

Update UnitType.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

unit_type_idstringRequired
ID of the UnitType.

Request

This endpoint expects an object.
archiveReasonstringOptional

Why it is being archived. Required when archived is true, and not allowed when unarchiving.

archivedbooleanOptional

Set to true to archive or false to unarchive it. Archiving requires archiveReason.

formulalist of objectsOptional
Formula defining this type in terms of other units.
namestringOptional
The name of this unit type, e.g. "Volume".
overrideIsConcentrationbooleanOptional
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.
overrideIsContainerQuantitybooleanOptional
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.
reasonForChangeobjectOptional

Reason for change applied to the entire request. Only relevant to tenants with Data Modifications enabled, where it may be required to update or delete items and is validated against the tenant’s configured reasons. Tenants without Data Modifications enabled can omit it; if supplied, it is not validated.

Response

OK
__typenamestringOptional
archiveReasonstring or nullOptional
archivedbooleanOptional
baseUnitobject or nullOptional
The reference unit. All other units' conversionFactors are relative to this unit. Null for unit types with no units yet.
createdAtstring or nullOptionalformat: "datetime"
formulalist of objects or nullOptional

Defines this unit type in terms of other units for derived types, e.g. Liter = decimeter cubed.

idstringOptional
modifiedAtstring or nullOptionalformat: "datetime"
namestringOptional

The user-facing name, e.g. “Volume” or “Molar Concentration”.

overrideIsConcentrationboolean or nullOptional

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.

overrideIsContainerQuantityboolean or nullOptional

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.

termslist of objectsOptional
The dimensional composition of this unit type as a list of SI base dimensions with exponents.
unitsstring or nullOptionalformat: "uri"
All units belonging to this unit type.

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error