Add functionality to toggle task completeness with appropriate PUT requests.