Skip to main content

system.kanoa.lot.updateLotStateReason

This function is part of the kanoaOPS module

Description

Updates an existing lot state reason.

Syntax

updateLotStateReason(stateInfo, userId)
  • Parameters
      Dictionary stateInfo - Information about the lot state reason to be updated, including lotStateReasonId, lotStateReasonName, lotStateId, and enabled.
      int userId - User ID
  • Returns
      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