Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

cURL command to move asset

Avatar

Level 5

Does anyone have a cURL command to move an asset from one directory to another?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Here you go-

 

curl -u admin:admin -X MOVE https://[aem_server]:[port]/api/assets/source/file.png -H "X-Destination: http://[aem_server]:[port]/api/assets/destination/file.png" -H "X-Overwrite: T"

View solution in original post

3 Replies

Avatar

Correct answer by
Employee Advisor

Here you go-

 

curl -u admin:admin -X MOVE https://[aem_server]:[port]/api/assets/source/file.png -H "X-Destination: http://[aem_server]:[port]/api/assets/destination/file.png" -H "X-Overwrite: T"

Avatar

Level 5
Hmmm, it seems this command is for 6.5. Do you have one for 6.3?

Avatar

Employee Advisor
This is available in 6.3 as well. Here is the doc - https://helpx.adobe.com/in/experience-manager/6-3/assets/using/mac-api-assets.html. Are you not able to run it on 6.3 ?