system.kanoa.item.addItemPeriod
Description
Adds the period if it doesn't already exist.Syntax
addItemPeriod(periodInfo, userId)Parameters:
Returns:
Dictionary
Parameter | Type | Required | Notes |
---|---|---|---|
itemPeriodName | string | e.g. 'second' | |
enabled | bool |
Code Examples
# Example Usage:
newItemPeriodId = system.kanoa.item.addItemPeriod({'itemPeriodName': 'second', 'enabled': True}, 123)