If your user account has the Write or Own permission level on an existing collection in DME, you can update the metadata of a data file in that collection.
To update the metadata of a data file:
In your file system, create a JSON file that specifies the metadata for the data file:
{ "metadataEntries": [ { "attribute": "description", "value": "my-dataObject-description" }, { "attribute": "my-second-attribute-name", "value": "my-second-attribute-value" } ] }
Run the following command:
dm_register_dataobject <description.json> <destination-path> [source-file]
The following table describes each parameter:
Parameter Description <description.json>
A path to the JSON file that specifies the metadata for the new data file. <destination-path>
A path within DME, including the name of the file you intend to upload. Specify where you want the system to create the new data file.
For example, the following command updates the metadata of the data.txt file in the Project1 collection in DME:
dm_register_dataobject /cygdrive/c/Users/JaneDoe/my-metadata.json /Example_Archive/PI_Lab1/Project1/data.txt
For instructions on performing a similar task in the GUI, refer to Updating Metadata via the GUI.