Updated to new REST API for historyService