Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

For your own scripts and server-to-server integrations. Create a key in the app under Settings > Access > API keys and copy it then, because it is shown once. Send it as Authorization: Bearer <key>. The key acts as the member who made it, in the organization it was made in. A call needs the member's permission and one of the key's scopes, such as inventory:read or sales:write. A key with * has every scope.

Body

application/json
code
string
required
Maximum string length: 16
Pattern: ^[A-Za-z0-9][A-Za-z0-9._-]*$
name
string
required
Maximum string length: 255
dimension
enum<string>
required

What a unit measures. Units of one dimension convert into each other when both have a standard factor.

Available options:
count,
mass,
length,
volume,
area,
time
factor
string | null
Pattern: ^(?!0+(\.0+)?$)\d{1,20}(\.\d{1,20})?$

Response

UnitResource

data
UnitResource · object
required