Create unity

Creates a new unit of measure.

Body Fields

FieldTypeRequiredDescription
namestringYesUnit name (e.g., "Unit", "Hour", "Day", "Kg", "m²")
byDefaultbooleanNoSet as default unit (default: false)

Common Unit Examples

NameUsage
UnitDefault for countable items
HourTime-based services
DayDaily rates
KgWeight-based products
Area-based pricing
LotBatch/bundle pricing

Response Fields

FieldTypeDescription
idintegerNewly created unity unique identifier
namestringUnit name
byDefaultbooleanWhether this is the default unit
createdAtdatetimeCreation timestamp
updatedAtdatetimeLast update timestamp

Response

  • 201 Created: Unity successfully created
  • 400 Bad Request: Invalid request body or validation error
  • 401 Unauthorized: Invalid or missing API key
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
boolean
Responses
201

Resource created

400

Bad request

401

Unauthorized

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here!