Valuekeep DesenvolvimentoAtivos
DesenvolvimentoAtivos
Ativos
Voltar | Lista de artigos

Como criar ou eliminar uma ferramenta?

Última alteração a 26/12/2024

Criar Ferramenta

This method allows to create a tool in a simplified manner:

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

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

Eliminar Ferramenta

O seguinte método permite eliminar uma ferramenta: DELETE  url/api/mytenant/myorganization/assetmanagementcore/equipmentItems/{{companyKey}}/{{toolKey}}
Os parâmetros a serem substituídos no método são:
  • companyKey: chave da empresa.
  • toolKey: chave da ferramenta que pretende eliminar.
Quando este método é executado com sucesso devolve um HttpStatusCode.204.
Adicionar aos favoritos ou partilhar este artigo
Esta página foi útil?
Obrigado pelo seu voto.
Artigos Relacionados
Como criar ou eliminar uma localização? Como criar ou eliminar um equipamento? Como obter a lista de anexos dos ativos referentes a uma ordem de trabalho? Como criar ou eliminar um contador? Como eliminar um controlo de condição?