Update to allow request of multiple devices' data from collection api.

Each device is identified by an integer ID, in the device_ids array.