This method creates an item of type className under the parent item identified by parentId. Any attributes in fields will be set if possible (attempts to set non-existent attributes will not cause the method to fail). The integer value returned is the ID of the newly created item. The parameters for the CreateInvestment method are:

Parameter Datatype Description
token string The token returned by the Connect method.
className string The XML name of the item type for the item you want to create.
name string The name for the item to create.
parentId integer The item ID for the parent item (under which this item will be created).
fields attribute[] The key/value pairs of the attributes associated with the new item.