---
title: "Update unit of measure"
method: PUT
path: "/units-of-measure/{id}/"
tags: ["Unit Of Measures"]
---

# Update unit of measure

`PUT /units-of-measure/{id}/`

## Request

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

Endpoint for updating an existing unit of measure.

## Path parameters

- `id` string, required

## Headers

- `X-Wafeq-Idempotency-Key` string

## Request body

- ApiV1UnitOfMeasure: A unit of measure items are counted in.
  - `created_ts` string, date-time, required: The timestamp in UTC when the unit of measure was created
  - `id` string, required: The unique identifier of the unit of measure.
  - `is_active` boolean: Whether the unit of measure is active.
  - `modified_ts` string, date-time, required: The timestamp in UTC when the unit of measure was last modified
  - `name` string, required: The name of the unit of measure.
  - `name_ar` string: The Arabic name of the unit of measure.

## Response `200`

- ApiV1UnitOfMeasure: A unit of measure items are counted in.
  - `created_ts` string, date-time, required: The timestamp in UTC when the unit of measure was created
  - `id` string, required: The unique identifier of the unit of measure.
  - `is_active` boolean: Whether the unit of measure is active.
  - `modified_ts` string, date-time, required: The timestamp in UTC when the unit of measure was last modified
  - `name` string, required: The name of the unit of measure.
  - `name_ar` string: The Arabic name of the 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)
