DC 5.7 (New) Update metadata on asset
This explains how digizuitecore is used for setting metadata on an asset
URL : /digizuitecore/legacyservice/api/metadata/update
Method : POST
Auth required : Yes
Required headers
Name | Example | Description |
---|---|---|
|
| Content type for the request |
|
| Access Key authorization header that you get from the normal logon method. |
Required parameters (with updates body tag)
Name | Example | Description |
---|---|---|
| 12345 | List of item ids of your assets that must be have its metadata updated |
| 12345 | The id of the metafield label that must be updated |
Optional parameters
Name | Example | Description |
---|---|---|
| 1 | Updating field type |
| abc | Updating field type |
| [1,2,3] | Updating field type |
Request body
{
"updates": [{
"targetItemIds": [1234],
"metaFieldLabelId": 5421,
"value": "My description"
}]
}
|
Success Response
Code : 200 OK
Error Response
Code : 500 ERROR