updated task creation function for v2 HabitRPG API