mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
762 B
762 B
Edit
To make changes to a dataset, you'll need to start by retrieving the asset's Decentralized Data Object (DDO).
Retrieve DDO
Obtaining the DDO of an asset is a straightforward process. You can accomplish this task by executing the following command:
npm run cli getDDO 'assetDID'
![](/oceanprotocol/docs/media/commit/a037407654949d4b2ff0dc52026c9010993ce323/.gitbook/assets/getAsset.png)
Retrieve DDO
Edit the Dataset
After retrieving the asset's DDO and saving it as a JSON file, you can proceed to edit the metadata as needed. Once you've made the necessary changes, you can utilize the following command to apply the updated metadata:
npm run cli editAsset 'DATASET_DID' 'PATH_TO_UPDATED_FILE`