Update function, find by owner id and base path, Api entity, generate MongoDb id.