Using CURL to update DAM Asset property (AEM6.0) | Adobe Higher Education
Skip to main content
Level 4
December 14, 2016
Resuelto

Using CURL to update DAM Asset property (AEM6.0)

  • December 14, 2016
  • 2 respuestas
  • 2769 visualizaciones

Hi,

I was trying to update the metadata property using cURL command on local Instance. If the asset exists the property will be updated successfully without any failure.

If Asset doesn't exists in DAM and I try to update the property then the sling:folder structure will be created with <assetname>/jcr:content/metadata which is the real problem.

Command used to update the property :

curl -u admin:admin -Fsubscribable="true" http://localhost:4502/content/dam/abc/documents/en/advisors/product/jcr%3Acontent/metadata

Please help to fix this issue.

Thank you in advance

Este tema ha sido cerrado para respuestas.
Mejor respuesta de Ashwin_Raju

Ideally you should be getting 500 error if the asset doesn't exist. You can also run a query using curl to check if image exist and then update.

Ex query : curl -s -u admin:admin GET "http://localhost:4502/bin/querybuilder.json?path=%2fcontent%2fgeometrixx%2fen&property=fileReference&property.value=%2fcontent%2fdam%2fgeometrixx%2fshapes%2ftri_equilateral.png&type=nt%3aunstructured"

Regards,

Ashwin Raju

2 respuestas

kautuk_sahni
Community Manager
Community Manager
December 15, 2016

Hi 

Moving this thread to AEM "Assets" topic so to have better continental experts have a look at this.

~kautuk

Kautuk Sahni
Ashwin_RajuRespuesta
Level 3
January 3, 2017

Ideally you should be getting 500 error if the asset doesn't exist. You can also run a query using curl to check if image exist and then update.

Ex query : curl -s -u admin:admin GET "http://localhost:4502/bin/querybuilder.json?path=%2fcontent%2fgeometrixx%2fen&property=fileReference&property.value=%2fcontent%2fdam%2fgeometrixx%2fshapes%2ftri_equilateral.png&type=nt%3aunstructured"

Regards,

Ashwin Raju