cURL command to move asset

Avatar

Avatar

jkpanera

Avatar

jkpanera

jkpanera

15-01-2021

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

View Entire Topic

Avatar

Avatar

kunal23

MVP

Avatar

kunal23

MVP

kunal23
MVP

16-01-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"