Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

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

_SumitSinghal
Level 4
Level 4

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

1 Accepted Solution
Ashwin_Raju
Correct answer by
Level 3
Level 3

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..."

Regards,

Ashwin Raju

View solution in original post

2 Replies
kautuk_sahni
Community Manager
Community Manager

Hi 

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

~kautuk

Ashwin_Raju
Correct answer by
Level 3
Level 3

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..."

Regards,

Ashwin Raju

View solution in original post