API: Create datafiles and metadata for datastore