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",
"description": "Porta-paletes",
"onServiceDate": "2020-10-01T00:00:00",
"externalReferenceID": null,
"serial": null,
"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:
i.EquipmentKey: The tool's key. If this parameter is not passed, it assumes the defined sequential number.
ii.Description: Short description of the tool. This field is mandatory.
iii.OnServiceDate: Date the tool entered the service. If this field is not filled in, the current date is assumed.
iv.ExternalReferenceID: External reference code.
v.Serial: Serial number.
vi.Picture: The image of the tool.
vii.PurchaseDate: Purchase date.
viii.PurchasePrice: Purchase price.
ix.Remarks: Tool remarks.
x.Keyword: Short description of the tool.
xi.Barcode: The tag of the tool.
xii.IsTool: Place true for creating a tool.
xiii.WorkingTime: Work time.
xiv.Manufacturer: Manufacturer key.
xv.Location: The tool location's key. This field is mandatory, when the parentEquipment field is not filled in.
xvi.Criticality: The criticality's key.
xvii.Currency: The currency's key.
xviii.Owner: The owner's key.
xix.Brand: The brand's key.
xx.BrandModel: The model's key.
xxi.ParentEquipment: The parent tool's key. This field is mandatory, when the location field is not filled in.
xxii.Family: The family's key.
xxiii.Company: The company's key.
xxiv.Responsible: The key of the person in charge.
xxv.Supplier: The supplier's key.
xxvi.Customer: The customer's key.
xxvii.WarrantyStartDate: The warrany start date.
xxviii.WarrantyEndDate: The warrany end date.
xxix.WarrantyExtensionEndDate: The warranty extension end date.
When this method is executed successfully, it returns HttpStatusCode.201 Created