User user = getUser(request);
Authorizations authorizations = getAuthorizations(request, user);
String workspaceId = getActiveWorkspaceId(request);
LOGGER.debug("undoing:\n%s", Joiner.on("\n").join(undoData));
ClientApiWorkspaceUndoResponse workspaceUndoResponse = new ClientApiWorkspaceUndoResponse();
undoVertices(undoData, workspaceUndoResponse, workspaceId, user, authorizations);
undoEdges(undoData, workspaceUndoResponse, workspaceId, user, authorizations);
undoProperties(undoData, workspaceUndoResponse, workspaceId, user, authorizations);
LOGGER.debug("undoing results: %s", workspaceUndoResponse);
respondWithClientApiObject(response, workspaceUndoResponse);