update_metadata function

Update the metadata from a workspace