system.kanoa.quality.config.updateTolerance
Description
Updates an attribute tolerance.Syntax
updateTolerance(attrInfo, userId)Parameters:
Returns:
Dictionary
| Parameter | Type | Required | Notes |
|---|---|---|---|
| attributeToleranceId | int | No | e.g. 1 |
| attributeId | int | No | e.g. 2 |
| assetId | int | No | e.g. None |
| itemId | int | No | e.g. None |
| itemClassId | int | No | e.g. None |
| itemSetId | int | No | e.g. None |
| uel | float | No | e.g. 10.0 |
| udl | float | No | e.g. None |
| usl | float | No | e.g. 9.0 |
| ucl | float | No | e.g. 8.0 |
| tgt | float | No | e.g. 5 |
| lcl | float | No | e.g. 3 |
| lsl | float | No | e.g. 2 |
| ldl | float | No | e.g. None |
| lel | float | No | e.g. 0 |
| enabled | bool | No | e.g. True |
Code Examples
# Usage example
tolerance_info = {'attributeToleranceId': 1, 'attributeId': 2, 'assetId': None, 'itemId': None, 'itemClassId': None, 'itemSetId': None, 'uel': 10.0, 'udl': None, 'usl': 9.0, 'ucl': 8.0, 'tgt': 5, 'lcl': 3, 'lsl': 2, 'ldl': None, 'lel': 0, 'enabled': True}
modified_records = system.kanoa.quality.config.updateTolerance(attrInfo=tolerance_info, userId=123)
if modified_records is not None:
print(f"Successfully updated {modified_records} records")