Configuration
This section handles Quality (SPC) configuration.
POST /quality/config (ISA-95 compliant, for more information please read the B2MML document)
This method creates the quality configuration using json encodad B2MML data. The user must have the administrator role.
Request parameters (for additional information please review the SPC configuration):
- company [mandatory]: the company name or id.
- session [mandatory]: the Id of the active session.
- data [mandatory]: the json encoded B2MML data defining the SPC charcteristics.
Example:
{ "SyncMaterialInformation": { "ApplicationArea": { "Sender":{"ComponentID":"ERP","ConfirmationCode":"Always"}, "CreationDateTime":"2019-04-11T12:18:59" }, "DataArea": { "Sync":{"ActionCriteria":{"ActionExpression":{"@actionCode":"Change"}}}, "MaterialInformation": { "ID":"8561", "Description":"8561 1.4L", "QAMaterialTestSpecification": { "Name":"PR1", "Description":"PROGRAM 1", "TestedMaterialDefinitionProperty": { "MaterialDefinitionID":"8561", "PropertyID":"PR1M1", "Description":"MESARURE 1", "PublishedDate":"2019-04-11T12:18:59", "SizeDb":"1", "Res":"0.01", "CPK":"0", "Link":[], "Limits":{"UAL":"1","UL":"0.2","UCL":"0.18","LCL":"0.12","LL":"0.1","LAL":"0"}, "Source":{"ID":"MAN1","Description":"MANOMETER 1","UnitOfMeasure":"KG","Res":"0.001"}, "AutoLimit":"0", "EquipmentID":"A0L1", "Every":"60", "Color":"255" } } } } } } |
Response example:
{ "status":"0", "data":"{ \"ConfirmBOD\":{ \"ApplicationArea\":{ \"Sender\":{\"ComponentID\":\"EDINN\",\"ConfirmationCode\":\"Always\"}, \"CreationDateTime\":\"2019-11-12T12:07:32\" }, \"DataArea\":{ \"Confirm\":{ \"ResponseCriteria\":{\"ResponseExpression\":{\"@actionCode\":\"Accepted\"}} }, \"BOD\":{ \"Description\":\"Accepted 8561\",\"Note\":\"MaterialInformation for 8561 processed successully\" } } } }", "message":"Success" } |