Therefore API > API Reference > Classes > TheCategory > Methods
CreateField
Creates a new category field and adds it to the current category.
Name
Description
ITheCategoryField CreateField(int, string, int, int, ITheServer)
Creates a new category field.
ITheCategoryField CreateField(ITheCaseDefinition, int, ITheServer)
Creates a new case header field.
Please check the help pages of the various overloads for the exact syntax in Visual Basic and C#.