// only the owner can do this...
if (!isOwner(inventoryItem.getConnection().getUser())) {
return error(ErrorMessages.APPLICATION_ACCESS_DENIED, Response.status(Response.Status.BAD_REQUEST));
}
inventoryItem.mergeWithJSON(json);
try {
applicationManager.getInventoryService().updateInventoryItem(inventoryItem, json);
} catch (ConnectionNotFoundException e) {
return error("Unable to find the connection for the inventory item requested.",