Delete Unit
Delete a unit of measure from Last Mile Intelligence.
Operation
Section titled “Operation”deleteUnit
Resource
Section titled “Resource”unit
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Unit ID | string | Yes | - | The ID of the unit to delete |
Response
Section titled “Response”Success
Section titled “Success”{ "success": true, "message": "Unit deleted successfully", "unitId": "unit_gallon"}{ "success": false, "error": "Unit not found", "unitId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Unit Not Found: Unit with specified ID does not exist
- In Use: Unit is being used by products or orders
- Permission Denied: API token lacks permission for this operation