Adapt to new REST API of the hub.