MediaManager API - update an asset metadata

Options

Hello,

There is a rest api available to update asset metadata PATCH /{version: v(4)}/assets/{id}
Below is a sample edit json, I am providing and it works fine:

{ "edited_asset": { "data": { "metadata": [ { "type": "com.artesia.metadata.MetadataField", "id": "LUM.FIELD.ALERT_COMMENT", "name": "LUM.FIELD.ALERT_COMMENT", "value": { "value": { "type": "string", "value": "Hello World" } } }, { "type": "com.artesia.metadata.MetadataTableField", "id": "HYBRIS.FIELD.PRODUCT.PRODUCT TAG NAME", "value": { "value": { "type": "string", "value": "ID Tag Name 2" } } }, { "type": "com.artesia.metadata.MetadataTableField", "id": "HYBRIS.FIELD.PRODUCT.PRODUCT ID", "value": { "value": { "type": "string", "value": "12345678AV" } } } ] } } }
I need to add another row to the Tabular Metadata field, but this fails always. Could someone please help me with this?

Comments

  • The issue with the properties of the metadata. The metadata field was marked as non-editable and making the field editable fixed the issue