![]() |
Page History
...
If your user account has the Write or Own permission level on an existing collection in DME, you can use a CLU command to update the metadata of a data file in that collection.
...
In your file system, create a JSON file that specifies the metadata for the data file:
Code Block { "metadataEntries": [ { "attribute": "description", "value": "my-dataObject-description" }, { "attribute": "my-second-attribute-name", "value": "my-second-attribute-value" } ] }
Run the following command:
Code Block 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 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 fileupdate.
For example, the following command updates the metadata of the data.txt file in the Project1 collection in DME:
Code Block |
---|
dm_register_dataobject /cygdrive/c/Users/JaneDoe/my-metadata.json /Example_Archive/PI_Lab1/Project1/data.txt |
The JSON file must contain metadata for the data file, data.txt.
For instructions on performing a similar task in the GUI, refer to Updating Metadata via the GUI.