Skip to main content

system.kanoa.quality.config.updateItemSet

This function requires KanoaQDS module

Description

Updates an item set in KanoaQDS.

Syntax

updateItemSet(itemSetInfo, userId)
  • Parameters
      dict itemSetInfo - Dictionary, e.g., {'itemSetId': 1, 'itemSetName': 'Set 1', 'itemSetDescription': 'Description 1', 'sortOrder': 3, 'enabled': True}
      int userId - User ID.
  • Returns
      tuple(itemSetId: int, message: str) - ID of the updated item set and a message.
  • Code Examples

    # Usage example
    item_set_info_update = {'itemSetId': 1, 'itemSetName': 'Updated Set', 'itemSetDescription': 'Updated Description', 'sortOrder': 3, 'enabled': True}
    user_id = 123
    updated_item_set_id, update_message = system.kanoa.quality.config.updateItemSet(itemSetInfo=item_set_info_update, userId=user_id)

    if updated_item_set_id:
    print(f"Successfully updated item set. ID: {updated_item_set_id}")
    else:
    print("Update failed. Reason:", update_message)