Update tasks api