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

Avatar

Avatar
Validate 10
Level 3
_SumitSinghal
Level 3

Likes

5 likes

Total Posts

79 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 3
_SumitSinghal
Level 3

Likes

5 likes

Total Posts

79 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile
_SumitSinghal
Level 3

14-12-2016

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 3
Ashwin_Raju
Level 3

Likes

7 likes

Total Posts

44 posts

Correct reply

4 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 3
View profile

Avatar
Validate 1
Level 3
Ashwin_Raju
Level 3

Likes

7 likes

Total Posts

44 posts

Correct reply

4 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 3
View profile
Ashwin_Raju
Level 3

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

Regards,

Ashwin Raju

Answers (1)

Answers (1)

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,199 likes

Total Posts

6,394 posts

Correct reply

1,147 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,199 likes

Total Posts

6,394 posts

Correct reply

1,147 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

15-12-2016

Hi 

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

~kautuk