Skip to main content
PUT
Update Unit of Measure

Authorizations

X-API-KEY
string
header
required

Headers

Idempotency-Key
string

Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns 422.

Maximum string length: 255

Path Parameters

unit_id
integer
required

Body

application/json
name
string
required
Required string length: 1 - 64
is_active
boolean
required

Response

OK

id
integer
required
code
string
required
name
string
required
category
string
required
ratio
string | null
required
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
is_active
boolean
required
is_standard
boolean
required
created_at
string<date-time>
required

Date and time the record was created

updated_at
string<date-time>
required

Date and time the record was last updated