Add model class for task.* API requests (#3797)