You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40-15Lines changed: 40 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,29 +64,54 @@ This is a callback function that is executed after you unpublish an asset.
64
64
65
65
It is the property that you can modify using the setData() method.
66
66
67
-
## Metadata SDK Reference
67
+
## Metadata
68
68
69
-
**IMetadata**
70
-
This object represents the structure of the metadata.
69
+
Metadata is a piece of information that lets you describe or classify an asset/entry. You can manage your digital entities effectively and enable improved accessibility with additional metadata. This object manages all the CRUD operations you can perform with metadata, e.g., adding, updating, or deleting additional metadata.
70
+
71
+
72
+
> Note: The Metadata feature allows users to update their asset metadata or entry metadata without incrementing the asset or entry version.
[key: string]: any; // other fields you want to add
83
+
}
84
+
```
85
+
86
+
This method adds new metadata for an asset or entry. It accepts metadata configuration as required arguments. This config contains basic details that you need to identify the metadata object and other data you need for your app.
This method adds new metadata for an asset or entry. It accepts metadata configuration as required arguments. This config contains basic details that you need to identify the `metadata` object and other data you need for your app.
96
+
This method retrieves metadata for an asset or entry. It accepts metadata configuration as required arguments. This config contains basic details that you need to identify the metadata object you want to retrieve.
84
97
85
-
**retrieveMetaData(metadataConfig: IMetadata)**
86
-
This method retrieves metadata for an asset or entry. It accepts metadata configuration as required arguments. This config contains basic details that you need to identify the `metadata` object you want to retrieve.
This method updates existing metadata for an asset or entry. It accepts metadata configuration as required arguments. This config contains basic details that you need to identify the `metadata` object and other data you want to update.
100
+
```ts
101
+
IMetadataUpdate {
102
+
uid: string;
103
+
[key: string]: any; // other fields you want to update
104
+
}
105
+
```
106
+
107
+
This method updates existing metadata for an asset or entry. It accepts metadata configuration as required arguments. This config contains basic details that you need to identify the metadata object and other data you want to update.
This method deletes existing metadata for an asset or entry. It accepts metadata configuration as required arguments. This config contains basic details that you need to identify the `metadata` object you want to delete.
117
+
This method deletes existing metadata for an asset or entry. It accepts metadata configuration as required arguments. This config contains basic details that you need to identify the metadata object you want to delete.
0 commit comments