Added new API to update task fields.