Skip to main content

system.kanoaOPS.updateAssetSchedule

Requires kanoaOPS license

Description

This function will update the mode for the given asset.

Syntax

updateAssetSchedule(assetPath, assetId, eventData)

Parameters:
  • assetPath (string): Path of the asset.
  • assetId (int): Asset ID.
  • eventData (pyObject): Event data.

  • Returns:
  • success (bool): Boolean value indicating success or failure.
  • Code Examples

    # Example Usage:
    asset_path = 'Kanoa Industries\Adelaide Hills\Packaging\Line 1'
    asset_id = 123
    event_data = {...} # Replace with actual event data
    success = system.kanoaOPS.updateAssetSchedule(asset_path, asset_id, event_data)