system.kanoa.lot.updateLotStateReason
Description
Updates an existing lot state reason.Syntax
updateLotStateReason(stateInfo, userId)- Dictionary stateInfo - Information about the lot state reason to be updated, including lotStateReasonId, lotStateReasonName, lotStateId, and enabled.
- int userId - User ID
- pyDataset
Code Examples
# Example usage
stateInfo = {'lotStateReasonId': 1, 'lotStateReasonName': 'new state reason', 'lotStateId': 1, 'enabled': False}
userId = 123
dataset = system.kanoa.lot.updateLotStateReason(stateInfo, userId)
print(dataset) # Print the updated dataset