Skip to main content
POST
Create 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

Body

application/json
code
string
required
Required string length: 1 - 16
name
string
required
Required string length: 1 - 64

Response

Created

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