I'm communicating with Adobe Experience Manager, Version 6.5.6.0. I'm trying to update metadata of an existing asset.
Based on the API documentation I'm doing a PUT to :
https://dam.url.com/api/assets/.../documents/tds/test-lab9/Coca_Cola.pdf.json
With this data:
Views
Replies
Total Likes
Hi @jonasy18481676 ,
Try to get the API response after updating meta data and print it in logs..which will give you a clear picture on what happened. Are you able to see the updated meta data inside CRX for that asset.
Thanks!
I checked inside CRX and I found that I need to do create my request like this:
hi @jonasy18481676 ,
Sync metadata update between dc and jcr namespace - you have to do this sync after updating metadata using api call.
The API method updates the metadata properties in the jcr namespace. The updates made using the user interface change the metadata properties in the dc namespace. To sync the metadata values between dc and jcr namespace, you can create a workflow and configure Experience Manager to execute the workflow upon asset edit. Use an ECMA script to sync the required metadata properties. The following sample script synchronizes the title string between dc:title and jcr:title.
Check this for more details,
I checked in CRX and both dc:title and jcr:title are in the metadata level, not in the "metadata" level, not in jcr:content. So I think this is related to something else?
See the comment below.
Update asset metadata
Updates the asset metadata properties. If you update any property in the dc: namespace, the API updates the same property in the jcr namespace. The API does not sync the properties under the two namespaces.
FYI - see the below url in more detail.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies