Using the API to add metadata to multiple files