public synchronized APIResult update(HttpServletRequest request, String type, String entityName, String colo) {
checkColo(colo);
try {
EntityType entityType = EntityType.valueOf(type.toUpperCase());
audit(request, entityName, type, "UPDATE");
Entity oldEntity = EntityUtil.getEntity(type, entityName);
Entity newEntity = deserializeEntity(request, entityType);
validate(newEntity);
validateUpdate(oldEntity, newEntity);
if (!EntityUtil.equals(oldEntity, newEntity)) {
configStore.initiateUpdate(newEntity);