Endpoint to create a new task associated with the current organization and user.
Args: task (TaskCreate): The request body containing task details including name, schedule, and execution parameters.
Returns: Task: The newly created task object.
Raises: HTTPException 409: If task creation fails due to a runtime error.
JWT Authorization header using the Bearer scheme. Example: 'Authorization: Bearer {token}'
The Task name.
Task visibility: 'private' (default) or 'public'
private, public The initial user input for the task, default is None
Optional schedule information for the task
Task state: 'enabled' (default) or 'disabled'
disabled, enabled Task category
Successful Response
The Task name.
User who created the task
Next scheduled execution time (UTC)
Unique identifier for the task
Task visibility: 'private' (default) or 'public'
private, public The initial user input for the task, default is None
Optional schedule information for the task
Task state: 'enabled' (default) or 'disabled'
disabled, enabled Task category