add PUT REST api for metadata