WebAPI - Creating an equipment

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. {
    "equipmentKey""AVS",
    "equipmentKeySegments"null,
    "description""Sistema Avac",
    "onServiceDate""2021-07-01T00:00:00",
    "externalReferenceID""13LNN458",
    "serial""xt789",
    "purchaseDate""2021-07-12T00:00:00",
    "purchasePrice"
    {
        "amount"2580.000000,
        "baseAmount"2580.000000,
        "reportingAmount"2580.000000,
        "fractionDigits"2,
        "symbol""€"
     },
    "remarks"null,
    "keyword""Sistema Avac",
    "barcode"null,
    "isTool"false,
    "workingTime""23:59:59",
    "manufacturer"null,
    "location""TEC",
    "criticality""00000001",
    "currency""EUR",
    "owner""0004",
    "brand""FF",
    "brandModel""FF100",
    "parentEquipment""PC01",
    "family""CAM",
    "company""DEMO",
    "responsible"null,
    "provider""0003",
    "customer""0015"
    }

This method allows to create an equipment according to the parameters filled in:


  1. EquipmentKey: The equipment key.. If this parameter is not passed, it assumes the defined sequential number. 
  2. Description: Short description of the equipment. This field is mandatory.
  3. OnServiceDate: Date the equipment entered the service. If this field is not filled in, the current date is assumed.
  4. ExternalReferenceID: External reference code.
  5. Serial: Serial number.
  6. Picture: The equipment image. 
  7. PurchaseDate: Purchase date. 
  8. PurchasePrice: Purchase price.
  9. Remarks: Equipment remarks.
  10. Keyword: Short description of the equipment.
  11. Barcode: The equipment tag.
  12. IsTool: Place False to create the equipment.
  13. WorkingTime: Work time.
  14. Manufacturer:  Manufacturer key.
  15. Location: The equipment location's key. This field is mandatory, when the parent equipment is not filled in.
  16. Criticality: The criticality's key.
  17. Currency: The currency's key.
  18. Owner: The owner's key.
  19. Brand: The brand's key.
  20. BrandModel: The model's key.
  21. ParentEquipment: The parent equipment key. This field is mandatory, when the location field is not filled in.
  22. Family: The family's key.
  23. Company: The company's key.
  24. Responsible: The key of the person in charge.
  25. Supplier: The supplier's key.
  26. Customer: The customer's key.

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

 



    • Related Articles

    • WebAPI - Creating a equipment

      This method allows, in a simplified way, to create an equipment. The method to use for creating an equipment is: POST url/api/mytenant/myorganization/assetmanagementcore/equipmentItems Example Json for creating an equipment:  { ...
    • WebAPI – How do I create work orders?

      This method offers a simple way of creating a Work Order for a specific Asset, Location, Tool or Route. The method to be used to create a work order is: POST /api/mytenant/myorganization/maintenance/workorders/newWorkOrderInfo Json example to create ...
    • WebAPI - How to get the equipment an employee has access to?

      The method returns the equipment list and the access level the employee has access to.  The method to be used to get the equipment list and the access level the employee has access to is: GET ...
    • WebAPI - How to get the locations an employee has access to?

      The method returns the location list and the access level the employee has access to.  The method to be used to get the location list and the access level the employee has access to is: GET ...
    • Webapi - Deleting an equipment

      This method allows you to delete an equipment.  The method to be used when deleting an equipment is:   DELETE  url/api/mytenant/myorganization/assetmanagementcore/equipmentItems/{{companyKey}}/{{equipmentKey}}   The parameters being replaced on the ...