system.kanoa.quality.sheet.addSheetType
Description
Adds a new sheet type.Syntax
addSheetType(shtTypeInfo, userId)Parameters:
Returns:
Dictionary
Parameter | Type | Required | Notes |
---|---|---|---|
chkShtTypeName | string | Name of the sheet type | |
parentId | int | ID of the parent sheet type | |
description | string | Description of the sheet type (optional) | |
enabled | bool | True to enable the sheet type |
Code Examples
# Usage example
shtTypeInfo = {'chkShtTypeName': 'Quality', 'parentId': 1, 'description': None, 'enabled': True}
userId = 123
chkShtTypeId = system.kanoa.quality.sheet.addSheetType(shtTypeInfo=shtTypeInfo, userId=userId)
print(chkShtTypeId)