---
title: "Create item unit of measure"
method: POST
path: "/item-units-of-measure/"
tags: ["Item Unit Of Measures"]
---

# Create item unit of measure

`POST /item-units-of-measure/`

## Request

- Base URL: `https://api.wafeq.com/v1`
- URL: `https://api.wafeq.com/v1/item-units-of-measure/`
- Auth: API key in header `Authorization`

Endpoint for creating a new item unit of measure.

## Headers

- `X-Wafeq-Idempotency-Key` string

## Request body

- ApiV1ItemUnitOfMeasure: A unit of measure an item is bought or sold in, with its conversion factor and prices.
  - `conversion_factor` number, double, required: The conversion factor relative to the base unit.
  - `created_ts` string, date-time, required: The timestamp in UTC when the item unit of measure was created
  - `id` string, required: The unique identifier of the item unit of measure.
  - `is_active` boolean: Whether this unit of measure is active.
  - `is_base` boolean: Whether this is the base unit of measure for the item.
  - `is_default_purchase` boolean: Whether this is the default unit for purchases.
  - `is_default_sales` boolean: Whether this is the default unit for sales.
  - `item` string, required: The item this unit of measure belongs to.
  - `modified_ts` string, date-time, required: The timestamp in UTC when the item unit of measure was last modified
  - `unit_cost` number, double, nullable: The unit cost for this unit of measure.
  - `unit_of_measure` string, required: The unit of measure.
  - `unit_of_measure_name` string, required: The name of the unit of measure.
  - `unit_price` number, double, nullable: The unit price for this unit of measure.

## Response `201`

- ApiV1ItemUnitOfMeasure: A unit of measure an item is bought or sold in, with its conversion factor and prices.
  - `conversion_factor` number, double, required: The conversion factor relative to the base unit.
  - `created_ts` string, date-time, required: The timestamp in UTC when the item unit of measure was created
  - `id` string, required: The unique identifier of the item unit of measure.
  - `is_active` boolean: Whether this unit of measure is active.
  - `is_base` boolean: Whether this is the base unit of measure for the item.
  - `is_default_purchase` boolean: Whether this is the default unit for purchases.
  - `is_default_sales` boolean: Whether this is the default unit for sales.
  - `item` string, required: The item this unit of measure belongs to.
  - `modified_ts` string, date-time, required: The timestamp in UTC when the item unit of measure was last modified
  - `unit_cost` number, double, nullable: The unit cost for this unit of measure.
  - `unit_of_measure` string, required: The unit of measure.
  - `unit_of_measure_name` string, required: The name of the unit of measure.
  - `unit_price` number, double, nullable: The unit price for this unit of measure.

---

[API](https://skmtc.dev/wafeq/apis/wafeq-public-api.md) - [All operations](https://skmtc.dev/wafeq/apis/wafeq-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wafeq/apis/wafeq-public-api/revisions/b8f5e10134b4?raw)
