Material
Method: PATCH
Description:
Change specific properties of existing material, gets a stream with some properties of Material entity (according to Material?Schema),
Currently the properties that can be updated are:
Location (McId, X, Y, Z), ExpirationDate, Amount, AmountUsed, AmountCorrection and CompName.
When changing location McId must be specified (X, Y, Z are optional, with default = 0),
Changing location to McId = -1 means scan out of the current machine.
When changing location to scan material in or out of Storage, Dry Storage, Dry Oven or SMT machine - relevant data will be updated
such as MSD open/dry time, SAP transfer table, ActDevList table and feeder information.
Changing location can be done by providing ResourceName instead of McId,
For scan out of the current machine ResourceName should be empty and LastResourceName should be the name of the current machine
Resource URL:
http://localhost:8014/MaterialManagement/Material/{ReelId}
Examples:
http://localhost:8014/MaterialManagement/Material/ID0001
Example of request body (data that should be sent):
Example of changing location:
<Material McId='12' X='1' Y='0' Z='0' xmlns='http://www.valor.com/MSS/Schemas/Material/2011' />
Example of changing location by resource name:
<Material ResourceName='ABC' X='1' Y='0' Z='0' xmlns='http://www.valor.com/MSS/Schemas/Material/2011' />
Example of changing expiration date:
<Material ExpirationDate='28022020' xmlns='http://www.valor.com/MSS/Schemas/Material/2011' />
Example of changing amounts:
<Material Amount='500' AmountUsed='200' AmountCorrection='300' xmlns='http://www.valor.com/MSS/Schemas/Material/2011' />
Example of changing CompName (part number):
<Material CompName='P0001a' xmlns='http://www.valor.com/MSS/Schemas/Material/2011' />
Example of removing material from machine by resource name:
<Material LastResourceName='ABC' ResourceName='' xmlns='http://www.valor.com/MSS/Schemas/Material/2011' />