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",

"picture""https://valuekeepdev.blob.core.windows.net/sampledb-images/EquipmentItems_a02336c8-7ff2-4d30-bfe2-b22906f3c161_Picture_image.jpeg",

"pictureThumbnail""https://valuekeepdev.blob.core.windows.net/sampledb-images/EquipmentItems_a02336c8-7ff2-4d30-bfe2-b22906f3c161_Picture_Thumbnail_image.jpeg",

"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",

 "warrantyStartDate""2022-02-16",

 "warrantyEndDate""2022-02-17",

 "warrantyExtensionEndDate""2022-02-18"

}

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

·       EquipmentKey: The equipment key.. If this parameter is not filled in, it assumes the defined sequential number. 

·       Description: Short description of the equipment. This field is mandatory.

·       OnServiceDate: Date the equipment entered the service. If this field is not filled in, the current date is assumed.

·       ExternalReferenceID: External reference code.

·       Serial: Serial number.

·       Picture: The equipment image. 

·       PurchaseDate: Purchase date. 

·       PurchasePrice: Purchase price.

·       Remarks: Equipment remarks.

·       Keyword: Short description of the equipment.

·       Barcode: The equipment tag.

·       IsTool: Place False to create the equipment.

·       WorkingTime: Work time.

·       Manufacturer:  Manufacturer key.

·       Location: The equipment location's key. This field is mandatory, when the parent equipment is not filled in.

·       Criticality: The criticality's key.

·       Currency: The currency's key.

·       Owner: The owner's key.

·       Brand: The brand's key.

·       BrandModel: The model's key.

·       ParentEquipment: The parent equipment key. This field is mandatory, when the location field is not filled in.

·       Family: The family's key.

·       Company: The company's key.

·       Responsible: The key of the person in charge.

·       Supplier: The supplier's key.

·       Customer: The customer's key.

·       WarrantyStartDate: The warranty start date.

·       WarrantyEndDate: The warranty end date.

·       WarrantyExtensionEndDate: The warranty extension end date.

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


    • Related Articles

    • 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 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 - How to get the list of requisitions?

      This method allows getting the list of requisitions in a simplified manner. The method to be used when getting the requisitions list is: GET  url/api/mytenant/myorganization/requisitions/requisitions ​When this method is executed successfully, it ...
    • 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:  { ...