Preconditions.requireSingular(userIds, "Multiple userIds not supported");
Map<String, String> values = request.getTypedParameter("data", HashMap.class);
for (String key : values.keySet()) {
if (!isValidKey(key)) {
throw new SocialSpiException(ResponseError.BAD_REQUEST,
"One or more of the app data keys are invalid: " + key);
}
}
return service.updatePersonData(userIds.iterator().next(), request.getGroup(),