Improvements to registering metadata via api