Webapi - Creating a unit

Webapi - Creating a unit

This method allows to create a unit in a simplified manner.

 The method to be used when creating a unit is:
 
POST url/api/mytenant/myorganization/corepatterns/units

 Json example for creating a unit:
  1. {
            "unitKey""HR",
            "description""Hora",
            "precisionDigits"2,
            "conversionFactor"1.0,
            "symbol""HR",
            "isDimensionBaseUnit"false,
            "dimension""01"
        }

This method allows to create a unit according to the parameters filled in:


  1. unitKey: The key of the unit. Mandatory field.
  2. description: Short description of the unit. This field is mandatory.
  3. precisionDigits: Number of decimal places.
  4. conversionFactor: Conversion factor.
  5. symbol: Symbol.
  6. isDimensionBaseUnit: Dimension base unit. Fill in this field with true or false. There can only exist one unit with this field active (true).
  7. dimension: Dimension. (01-Quantity; 02- Weight; 03-Time; 04-Length). Mandatory field.

When this method is executed successfully, it returns HttpStatusCode.201Created.



    • Related Articles

    • WebAPI - Creating a warehouse

      This method allows to create a warehouse in a simplified manner. The method to be used when creating a warehouse: POST url/api/mytenant/myorganization/inventorycore/warehouses Json example for creating a warehouse: 1. { "warehouseKey": "W2", ...
    • WebAPI - Creating a request

      This method allows to create a request in a simplified manner. The method to be used when creating a request: POST url/api/mytenant/myorganization/Requests/requests Json example for creating a request: { "requestKey": "00001", "description": "Vidro ...
    • WebAPI - Creating a requisition type

      This method allows creating a type of requisition in a simplified manner. The method to be used to create a requisition type is: POST url/api/mytenant/myorganization/requisitionscore/requisitiontypes Json example for creating a type of requisition:  ...
    • WebAPI - Creating a tool

      This method allows to create a tool in a simplified manner. The method to be used when creating a tool is: POST url/api/mytenant/myorganization/assetmanagementcore/equipmentItems Json example for creating a tool: 1.     {     "equipmentKey": "PCR", ...
    • WebAPI - Creating an equipment

      This method allows to create an equipment in a simplified manner. The method to be used when creating an equipment: POST url/api/mytenant/myorganization/assetmanagementcore/equipmentItems Json example for creating an equipment: 1.       { ...