typing errors fixed
tasks API endpoint