Make the fact that the "aggregated" field is used to indicate aggregation when retrieving measurements, not when uploading measurements. (Of course, it could be used in either case, so be generic about what the intention is, but don't disallow alternate implementations.)