CreateTask

Creates a new Task in the system with the specified parameters. This method initiates a new task with a unique ID, if one is not provided, sets the initial task state to STATUS_SENT, and establishes task ownership. The task must be assigned to a specific agent using the Relations field. Once created, a task enters the lifecycle workflow and can be tracked, updated, and managed through other Task Manager APIs.