NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Moved the Code Block up.

...

To create an empty collection:

  1. Create the JSON file that specifies the metadata for the new collection

    .

    , as follows:

    Code Block
    {
        "metadataEntries": [
            {
             "attribute": "project",
             "value": "my-project-name"
            },
            {
             "attribute": "collection_type",
             "value": "Folder"
            }
        ]
    }
  2. Run the following command:

    Code Block
    dm_register_collection <description.json> <destination-path>

    The following table describes each parameter:

    ParameterDescription
    <description.json>

    A path to a file in your file system. In this file, specify the metadata that you want to upload, as follows:

    Code Block
    {
        "metadataEntries": [
            {
             "attribute": "project",
             "value": "my-project-name"
            },
            {
             "attribute": "collection_type",
             "value": "Folder"
            }
        ]
    }
    <destination-path>
    A path within DME, including the name of the collection you intend to create. Specify where you want the system to create the new collection.

...