catissuecore/rest/ng/specimen/print-rules/name={ruleName}
...
URL |
or catissuecore/rest/ng/specimen/print-rules/{ruleId} |
Method | PUT |
Request | application/json |
json | { "name":"My PrintRule", "specimenClass" : "Fluid", "specimenType" : "Any", "labelType" : ["Cap+Slide"], "dataOnLabel" : ["Specimen Label","Specimen type","CP title","Created On"], "printerName" : "TB2", "workstationIP" : "127.0.0.1" } |
Response | { "id " : 1, "name": 5 name: "My PrintRule" , "specimenClass " : "Fluid" , "specimenType " : "Any" , "labelType" : labelType: ,[ 1]0: "Cap+Slide" - workstationIP: "127.0.0.1" dataOnLabel: ,[ 4]0: "Specimen type" 1: "CP title" 2: "Created On" 3: "Specimen Label" - printerName " : "TB2" , "workstationIP" : "127.0.0.1" } |
Error Cases :
code | Applies to | Status Message |
---|---|---|
200 | All resources | Print rule has been updated successfully |
400 | All requests | Invalid parameters, e.g duplicate Print rule name, blank Print rule name etc |
401 | All requests | Authorization failed, User doesn’t have Authority |
404 | All requests | Print rule not found, Print rule with given details not present in the system |
500 | All requests | Internal server error, Encountered server error while performing operations |