Endpoint to update an existing task by its ID. Only the original creator of the task is authorized to perform the update.
Args: task_id (str): The unique identifier of the task to update. task_update (TaskCreate): The updated task data submitted by the user.
Returns: dict: A success message indicating the task was updated.
Raises: HTTPException 403: If the current user is not the task creator. HTTPException 404: If the task is not found. HTTPException 500: If an internal error occurs during update.
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