cURL command to move asset | Community
Skip to main content
jkpanera
New Participant
January 15, 2021
Solved

cURL command to move asset

  • January 15, 2021
  • 1 reply
  • 2089 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kunal_Gaba_

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"

1 reply

Kunal_Gaba_
Kunal_Gaba_Accepted solution
New Participant
January 16, 2021

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"
jkpanera
jkpaneraAuthor
New Participant
January 16, 2021
Hmmm, it seems this command is for 6.5. Do you have one for 6.3?