Valuekeep DevelopmentAssets
DevelopmentAssets
Assets
Back | List of Articles

How to create or delete a tool?

Last changed in 26/12/2024

Create 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:

{

    "equipmentKey": "PCR",

    "description": "Porta-paletes",

    "onServiceDate": "2020-10-01T00:00:00",

    "externalReferenceID": null,

    "serial": null,

    "picture": "https://valuekeepdev.blob.core.windows.net/sampledb-images/EquipmentItems_0c66f042-98dd-4715-8bbf-6c5ac657cf9b_Picture_image.jpeg",

    "pictureThumbnail": "https://valuekeepdev.blob.core.windows.net/sampledb-images/EquipmentItems_0c66f042-98dd-4715-8bbf-6c5ac657cf9b_Picture_Thumbnail_image.jpeg",

    "purchaseDate": null,

    "purchasePrice": {

        "amount": 25000.000000,

        "baseAmount": 25000.000000,

        "reportingAmount": 25000.000000,

        "fractionDigits": 2,

        "symbol": "€"

    },

    "remarks": null,

    "keyword": "Porta-paletes",

    "barcode": null,

    "isTool": true,

    "workingTime": "23:59:59",

    "manufacturer": null,

    "location": "AM",

    "criticality": "0000000002",

    "currency": "EUR",

    "owner": null,

    "brand": null,

    "brandModel": null,

    "parentEquipment": null,

    "family": null,

    "company": "DEMO",

    "responsible": null,

    "provider": null,

    "customer": null,

    "warrantyStartDate": "2022-02-16",

    "warrantyEndDate": "2/17/2022",

    "warrantyExtensionEndDate": "2022-02-18"

}

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

  • EquipmentKey: The tool's key. f this parameter is not passed, it assumes the defined sequential number.
  • Description: Short description of the tool. This field is mandatory.
  • OnServiceDate: Date the tool entered the service. If this field is not filled in, the current date is assumed.
  • ExternalReferenceID: External reference code.
  • Serial: Serial number.
  • Picture: The image of the tool.
  • PurchaseDate: Purchase date.
  • PurchasePrice: Purchase price.
  • Remarks: Tool remarks.
  • Keyword: Short description of the tool.
  • Barcode: The tag of the tool.
  • IsTool: Place true for creating a tool.
  • WorkingTime: Work time.
  • Manufacturer:  Manufacturer key.
  • Location: The tool location's key. This field is mandatory, when the parentEquipment field 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 tool's 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

Delete Tool

This method allows you to delete a tool.
The method to be used when deleting a tool is:
DELETE  url/api/mytenant/myorganization/assetmanagementcore/equipmentItems/{{companyKey}}/{{toolKey}}
The parameters being replaced on the method are:
  • companyKey: company key.
  • locationKey: key of the tool you wish to delete.
When this method is executed successfully, it returns HttpStatusCode.204.
Bookmark or share this article
Esta página foi útil?
Obrigado pelo seu voto.

login para deixar a sua opinião.

Obrigado pelo seu feedback. Iremos analisá-lo para continuarmos a melhorar!
Related Articles
How to create or delete a location? How to create or delete an equipment? How to get the list of asset attachments regarding a work order? How to create or delete a meter? How to delete a monitoring?