long userId = getUserId(principal);
try {
management.editInstrument(userId, instrument.id, instrument.details);
management.setInstrumentOperators(userId, instrument.id, instrument.operators);
} catch (Exception e) {
return new SuccessErrorResponse(e.getMessage(), null);
}
return new SuccessErrorResponse(null, "Instrument updated");
}