Regenerating location

Been digging through the source and docs, but maybe I’ve just missed it. Is there a built in way to regenerate the location and have it set the id field of the *_data?

We had to change something that was used to generate the location path and while we could manually just recreate the *_data text string and resave it, we were wondering if there was way to force to go through the naming plugin and reset the field. Just to ensure we’re using the same process to bulk update that new records will get.