Unit of Measure API
Overview
The WMS Unit of Measure API is a Business Central API page designed to manage unit of measure data. This API allows external systems to interact with unit of measure records, providing functionality for creating, reading, and updating unit of measure information.
API Details
- Publisher: smart
- API Group: wms
- API Version: v2.0
- Entity Name: uom
- Entity Set Name: uoms
- Source Table: Unit of Measure
- ODataKeyFields: Code
Fields
The following fields are exposed in the API:
| Field Name | Source Field | Required | Description |
|---|---|---|---|
Code | Unit of Measure.Code | Yes | Unique identifier for the unit of measure. |
Description | Unit of Measure.Description | Yes | Description of the unit of measure. |
Example Usage
Create a New Unit of Measure
POST host/instance/api/smart/wms/v2.0/companies(companyId)/uoms
Content-Type: application/json
{
"Code": "BOX",
"Description": "Box"
}
Retrieve a Unit of Measure
GET host/instance/api/smart/wms/v2.0/companies(companyId)/uoms('BOX')
Update a Unit of Measure
PATCH host/instance/api/smart/wms/v2.0/companies(companyId)/uoms('BOX')
Content-Type: application/json
{
"Description": "Updated Box Description"
}