{"info":{"_postman_id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","name":"AEM 6.5 Asset API","description":"<html><head></head><body><h2 id=\"overview\">Overview</h2>\n<p>The Assets HTTP API allows for create-read-update-delete (CRUD) operations on digital assets, including on metadata, on renditions, and on comments, together with structured content using Experience Manager Content Fragments. It is exposed at <code>/api/assets</code> and is implemented as REST API. It includes <a href=\"https://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/assets-api-content-fragments.html?lang=en\">support for Content Fragments</a>.</p>\n<p>To access the API:</p>\n<ol>\n<li>Open the API service document at <code>https://[hostname]:[port]/api.json</code>.</li>\n<li>Follow the Assets service link leading to <code>https://[hostname]:[server]/api/assets.json</code>.</li>\n</ol>\n<p>Adobe documentation: <a href=\"https://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/mac-api-assets.html?lang=en#tips-best-practices-limitations\">https://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/mac-api-assets.html?lang=en#tips-best-practices-limitations</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"8916894","collectionId":"8405c09d-55e3-4535-a6f0-96eb96b1493d","publishedId":"2s9XxyRDQj","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-08-05T04:00:29.000Z"},"item":[{"name":"Retrieve a folder listing","id":"0b1c59be-e60d-4a57-adb4-671ef84b4b95","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:4502/api/assets/aemquickstart.json","description":"<h2 id=\"retrieve-a-folder-listing\">Retrieve a folder listing</h2>\n<p>Retrieves a Siren representation of an existing folder and of its child entities (subfolders or assets).</p>\n<p><strong>Request</strong>: <code>GET /api/assets/myFolder.json</code></p>\n<p><strong>Response codes</strong>: The response codes are:</p>\n<ul>\n<li>200 - OK - success.</li>\n<li>404 - NOT FOUND - folder does not exist or is not accessible.</li>\n<li>500 - INTERNAL SERVER ERROR - if something else goes wrong.</li>\n</ul>\n<p><strong>Response</strong>: The class of the entity returned is an asset or a folder. The properties of contained entities are a subset of the full set of properties of each entity. In order to obtain a full representation of the entity, clients should retrieve the contents of the URL pointed to by the link with a <code>rel</code> of <code>self</code>.</p>\n","urlObject":{"protocol":"http","port":"4502","path":["api","assets","aemquickstart.json"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4cee592f-cdd1-456e-a321-d079234a7b31","name":"Retrieve a folder listing","originalRequest":{"method":"GET","header":[],"url":"http://localhost:4502/api/assets/aemquickstart.json"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 05 Aug 2023 02:31:52 GMT"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Set-Cookie","value":"cq-authoring-mode=TOUCH; Path=/; Expires=Sat, 12-Aug-2023 02:31:52 GMT; Max-Age=604800"},{"key":"Expires","value":"Thu, 01 Jan 1970 00:00:00 GMT"},{"key":"Cache-Control","value":"no-store, max-age=0"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Type","value":"application/vnd.siren+json;charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"entities\": [\n        {\n            \"links\": [\n                {\n                    \"rel\": [\n                        \"self\"\n                    ],\n                    \"href\": \"http://localhost:4502/api/assets/aemquickstart/asset.jpg.json\"\n                },\n                {\n                    \"rel\": [\n                        \"content\"\n                    ],\n                    \"href\": \"http://localhost:4502/api/assets/aemquickstart/asset.jpg/renditions/original\"\n                }\n            ],\n            \"class\": [\n                \"assets/asset\"\n            ],\n            \"properties\": {\n                \"metadata\": {\n                    \"dc:modified\": \"2020-03-03T18:40:10.643Z\",\n                    \"dc:format\": \"image/jpeg\"\n                },\n                \"related\": {},\n                \"name\": \"asset.jpg\"\n            }\n        },\n        {\n            \"rel\": [\n                \"child\"\n            ],\n            \"links\": [\n                {\n                    \"rel\": [\n                        \"self\"\n                    ],\n                    \"href\": \"http://localhost:4502/api/assets/aemquickstart/content-fragments.json\"\n                }\n            ],\n            \"class\": [\n                \"assets/folder\"\n            ],\n            \"properties\": {\n                \"name\": \"content-fragments\"\n            }\n        }\n    ],\n    \"links\": [\n        {\n            \"rel\": [\n                \"self\"\n            ],\n            \"href\": \"http://localhost:4502/api/assets/aemquickstart.json\"\n        },\n        {\n            \"rel\": [\n                \"parent\"\n            ],\n            \"href\": \"http://localhost:4502/api/assets.json\"\n        },\n        {\n            \"rel\": [\n                \"thumbnail\"\n            ],\n            \"href\": \"http://localhost:4502/api/assets/aemquickstart/folderThumbnail\"\n        }\n    ],\n    \"class\": [\n        \"assets/folder\"\n    ],\n    \"actions\": [\n        {\n            \"method\": \"POST\",\n            \"name\": \"add-folder\",\n            \"href\": \"http://localhost:4502/api/assets/aemquickstart/*\",\n            \"title\": \"Add Folder\",\n            \"fields\": [\n                {\n                    \"name\": \"name\",\n                    \"type\": \"text\"\n                }\n            ]\n        },\n        {\n            \"method\": \"PUT\",\n            \"name\": \"update\",\n            \"href\": \"http://localhost:4502/api/assets/aemquickstart\",\n            \"type\": \"application/vnd.siren+json\",\n            \"title\": \"Update\",\n            \"fields\": [\n                {\n                    \"name\": \"data\",\n                    \"type\": \"text\"\n                }\n            ]\n        },\n        {\n            \"method\": \"DELETE\",\n            \"name\": \"delete\",\n            \"href\": \"http://localhost:4502/api/assets/aemquickstart\",\n            \"title\": \"Delete\"\n        },\n        {\n            \"method\": \"POST\",\n            \"name\": \"add-asset\",\n            \"href\": \"http://localhost:4502/api/assets/aemquickstart/*\",\n            \"title\": \"Add Asset\",\n            \"fields\": [\n                {\n                    \"name\": \"name\",\n                    \"type\": \"text\"\n                },\n                {\n                    \"name\": \"file\",\n                    \"type\": \"file\"\n                }\n            ]\n        },\n        {\n            \"method\": \"POST\",\n            \"name\": \"add-fragment\",\n            \"href\": \"http://localhost:4502/api/assets/aemquickstart/*\",\n            \"type\": \"application/json\",\n            \"title\": \"Add Content Fragment\"\n        }\n    ],\n    \"properties\": {\n        \"name\": \"aemquickstart\",\n        \"cq:conf\": \"/conf/aemquickstart\",\n        \"srn:paging\": {\n            \"total\": 2,\n            \"offset\": 0,\n            \"limit\": 20\n        }\n    }\n}"}],"_postman_id":"0b1c59be-e60d-4a57-adb4-671ef84b4b95"},{"name":"Create a folder","id":"e62630f0-7a6e-4fc9-ab53-302c42f9689f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{your_access_token}}"}],"body":{"mode":"raw","raw":"{\n    \"class\": \"assetFolder\",\n    \"properties\": {\n        \"jcr:title\": \"My Folder\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4502/api/assets/aemquickstart/images","description":"<p>Creates a new <code>sling</code>: <code>OrderedFolder</code> at the given path. If a <code>\\\\*</code> is provided instead of a node name, the servlet uses the parameter name as node name. Accepted as request data is either a Siren representation of the new folder or a set of name-value pairs, encoded as <code>application/www-form-urlencoded</code> or <code>multipart</code>/ <code>form</code>- <code>data</code>, useful for creating a folder directly from an HTML form. Additionally, properties of the folder can be specified as URL query parameters.</p>\n<p>An API call fails with a <code>500</code> response code if the parent node of the provided path does not exist. A call returns a response code <code>409</code> if the folder already exists.</p>\n<p><strong>Parameters</strong>: <code>name</code> is the folder name.</p>\n<p><strong>Request</strong></p>\n<ul>\n<li><code>POST /api/assets/myFolder -H\"Content-Type: application/json\" -d '{\"class\":\"assetFolder\",\"properties\":{\"jcr:title\":\"My Folder\"}}'</code></li>\n<li><code>POST /api/assets/\\\\* -F\"name=myfolder\" -F\"jcr:title=My Folder\"</code></li>\n</ul>\n<p><strong>Response codes</strong>: The response codes are:</p>\n<ul>\n<li>201 - CREATED - on successful creation.</li>\n<li>409 - CONFLICT - if folder already exist.</li>\n<li>412 - PRECONDITION FAILED - if root collection cannot be found or accessed.</li>\n<li>500 - INTERNAL SERVER ERROR - if something else goes wrong.</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","name":"AEM 6.5 Asset API","type":"collection"}},"urlObject":{"protocol":"http","port":"4502","path":["api","assets","aemquickstart","images"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e62630f0-7a6e-4fc9-ab53-302c42f9689f"},{"name":"Create an asset","id":"6fd24690-ab06-4aec-bda2-01613e1e340d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{your_access_token}}"},{"key":"Content-Transfer-Encoding","value":"image/png","type":"text"}],"body":{"mode":"file","file":{"src":"iif_oFEbY/Dispatcher-local (1).png"}},"url":"http://localhost:4502/api/assets/aemquickstart/images/myasset.jpg","description":"<p>Place the provided file at the provided path to create an asset in the DAM repository. If a <code>\\\\*</code> is provided instead of a node name, the servlet uses the parameter name or the file name as node name.</p>\n<p><strong>Parameters</strong>: The parameters are <code>name</code> for the asset name and <code>file</code> for the file reference.</p>\n<p><strong>Request</strong></p>\n<ul>\n<li><code>POST /api/assets/myFolder/myAsset.png -H\"Content-Type: image/png\" --data-binary \"@myPicture.png\"</code></li>\n<li><code>POST /api/assets/myFolder/\\\\* -F\"name=myAsset.png\" -F\"file=@myPicture.png\"</code></li>\n</ul>\n<p><strong>Response codes</strong>: The response codes are:</p>\n<ul>\n<li>201 - CREATED - if Asset has been created successfully.</li>\n<li>409 - CONFLICT - if Asset already exist.</li>\n<li>412 - PRECONDITION FAILED - if root collection cannot be found or accessed.</li>\n<li>500 - INTERNAL SERVER ERROR - if something else goes wrong.</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","name":"AEM 6.5 Asset API","type":"collection"}},"urlObject":{"protocol":"http","port":"4502","path":["api","assets","aemquickstart","images","myasset.jpg"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6fd24690-ab06-4aec-bda2-01613e1e340d"},{"name":"Retrieve Asset Metadata","id":"76ffe4c8-57c8-45c7-8a64-a7042508fe1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{your_access_token}}"}],"url":"http://localhost:4502/api/assets/aemquickstart/images/myasset.jpg","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","name":"AEM 6.5 Asset API","type":"collection"}},"urlObject":{"protocol":"http","port":"4502","path":["api","assets","aemquickstart","images","myasset.jpg"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"76ffe4c8-57c8-45c7-8a64-a7042508fe1f"},{"name":"Move Asset to Another Folder","id":"bdf2820c-c235-4025-a901-dd671c01abd0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{your_access_token}}"}],"body":{"mode":"raw","raw":"{\n  \"cmd\": \"move\",\n  \"destination\": \"/api/assets/newfolder/myasset.jpg\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4502/api/assets/aemquickstart/myasset.jpg.move.html","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","name":"AEM 6.5 Asset API","type":"collection"}},"urlObject":{"protocol":"http","port":"4502","path":["api","assets","aemquickstart","myasset.jpg.move.html"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bdf2820c-c235-4025-a901-dd671c01abd0"},{"name":"Update Asset Metadata","id":"c824b3b9-0824-47d6-b4eb-3784cc87e365","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{your_access_token}}"}],"body":{"mode":"raw","raw":"{\n    \"class\": \"asset\",\n    \"properties\": {\n        \"jcr:title\": \"My Asset\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:4502/api/assets/aemquickstart/images/myasset.jpg","description":"<p>Updates the asset metadata properties. If you update any property in the <code>dc:</code> namespace, the API updates the same property in the <code>jcr</code> namespace. The API does not sync the properties under the two namespaces.</p>\n<p><strong>Request</strong>: <code>PUT /api/assets/myfolder/myAsset.png -H\"Content-Type: application/json\" -d '{\"class\":\"asset\", \"properties\":{\"jcr:title\":\"My Asset\"}}'</code></p>\n<p><strong>Response codes</strong>: The response codes are:</p>\n<ul>\n<li>200 - OK - if Asset has been updated successfully.</li>\n<li>404 - NOT FOUND - if Asset could not be found or accessed at the provided URI.</li>\n<li>412 - PRECONDITION FAILED - if root collection cannot be found or accessed.</li>\n<li>500 - INTERNAL SERVER ERROR - if something else goes wrong.</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","name":"AEM 6.5 Asset API","type":"collection"}},"urlObject":{"protocol":"http","port":"4502","path":["api","assets","aemquickstart","images","myasset.jpg"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c824b3b9-0824-47d6-b4eb-3784cc87e365"},{"name":"Create an Asset Rendition","id":"f2144627-f98a-4cd1-a476-33bd1b76d8d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{your_access_token}}"},{"key":"Content-Type","value":"image/png","type":"text"}],"body":{"mode":"file","file":{"src":"kuloJlqEp/Screenshot 2020-05-09 at 12.54.39.png"}},"url":"http://localhost:4502/api/assets/aemquickstart/asset.jpg/renditions/web-rendition","description":"<p>Create a new asset rendition for an asset. If request parameter name is not provided, the file name is used as rendition name.</p>\n<p><strong>Parameters</strong>: The parameters are <code>name</code> for name of the rendition and <code>file</code> as a file reference.</p>\n<p><strong>Request</strong></p>\n<ul>\n<li><code>POST /api/assets/myfolder/myasset.png/renditions/web-rendition -H\"Content-Type: image/png\" --data-binary \"@myRendition.png\"</code></li>\n<li><code>POST /api/assets/myfolder/myasset.png/renditions/\\* -F\"name=web-rendition\" -F\"file=@myRendition.png\"</code></li>\n</ul>\n<p><strong>Response codes</strong>: The response codes are:</p>\n<ul>\n<li>201 - CREATED - if Rendition has been created successfully.</li>\n<li>404 - NOT FOUND - if Asset could not be found or accessed at the provided URI.</li>\n<li>412 - PRECONDITION FAILED - if root collection cannot be found or accessed.</li>\n<li>500 - INTERNAL SERVER ERROR - if something else goes wrong.</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","name":"AEM 6.5 Asset API","type":"collection"}},"urlObject":{"protocol":"http","port":"4502","path":["api","assets","aemquickstart","asset.jpg","renditions","web-rendition"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f2144627-f98a-4cd1-a476-33bd1b76d8d5"},{"name":"Update an Asset Rendition","id":"20034444-cfbc-422e-b2c8-14a7b6d2afc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer {{your_access_token}}"},{"key":"Content-Type","value":"image/png","type":"text"}],"body":{"mode":"file","file":{"src":"kuloJlqEp/Screenshot 2020-05-09 at 12.54.39.png"}},"url":"http://localhost:4502/api/assets/aemquickstart/asset.jpg/renditions/web-rendition","description":"<p>Updates respectively replaces an asset rendition with the new binary data.</p>\n<p><strong>Request</strong>: <code>PUT /api/assets/myfolder/myasset.png/renditions/myRendition.png -H\"Content-Type: image/png\" --data-binary @myRendition.png</code></p>\n<p><strong>Response codes</strong>: The response codes are:</p>\n<ul>\n<li>200 - OK - if Rendition has been updated successfully.</li>\n<li>404 - NOT FOUND - if Asset could not be found or accessed at the provided URI.</li>\n<li>412 - PRECONDITION FAILED - if root collection cannot be found or accessed.</li>\n<li>500 - INTERNAL SERVER ERROR - if something else goes wrong.</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","name":"AEM 6.5 Asset API","type":"collection"}},"urlObject":{"protocol":"http","port":"4502","path":["api","assets","aemquickstart","asset.jpg","renditions","web-rendition"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"20034444-cfbc-422e-b2c8-14a7b6d2afc2"},{"name":"Add a comment on an asset","id":"47a817d0-7670-4928-81fc-dadfeac0ae80","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{your_access_token}}"},{"key":"Content-Type","value":"image/png","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"message","value":"Hello World.","type":"text"},{"key":"annotationData","value":"{}","type":"text"}]},"url":"http://localhost:4502/api/assets/aemquickstart/asset.jpg/comments/*","description":"<p>Creates a new asset comment.</p>\n<p><strong>Parameters</strong>: The parameters are <code>message</code> for the message body of the comment and <code>annotationData</code> for the Annotation data in JSON format.</p>\n<p><strong>Request</strong>: <code>POST /api/assets/myfolder/myasset.png/comments/\\\\* -F\"message=Hello World.\" -F\"annotationData={}\"</code></p>\n<p><strong>Response codes</strong>: The response codes are:</p>\n<ul>\n<li>201 - CREATED - if Comment has been created successfully.</li>\n<li>404 - NOT FOUND - if Asset could not be found or accessed at the provided URI.</li>\n<li>412 - PRECONDITION FAILED - if root collection cannot be found or accessed.</li>\n<li>500 - INTERNAL SERVER ERROR - if something else goes wrong.</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","name":"AEM 6.5 Asset API","type":"collection"}},"urlObject":{"protocol":"http","port":"4502","path":["api","assets","aemquickstart","asset.jpg","comments","*"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"47a817d0-7670-4928-81fc-dadfeac0ae80"},{"name":"Copy a folder or an asset","id":"7eabc9b7-4297-4e5b-b587-2014dd0f411d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{your_access_token}}"},{"key":"X-Destination","value":"/api/assets/aemquickstart/new","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"message","value":"Hello World.","type":"text"},{"key":"annotationData","value":"{}","type":"text"}]},"url":"http://localhost:4502/api/assets/aemquickstart/images","description":"<p>Copies a folder or asset available at the provided path to a new destination.</p>\n<p><strong>Request Headers</strong>: The parameters are:</p>\n<ul>\n<li><code>X-Destination</code> - a new destination URI within the API solution scope to copy the resource to.</li>\n<li><code>X-Depth</code> - either <code>infinity</code> or <code>0</code>. Using <code>0</code> only copies the resource and its properties and not its children.</li>\n<li><code>X-Overwrite</code> - Use <code>F</code> to prevent overwriting an asset at the existing destination.</li>\n</ul>\n<p><strong>Request</strong>: <code>COPY /api/assets/myFolder -H\"X-Destination: /api/assets/myFolder-copy\"</code></p>\n<p><strong>Response codes</strong>: The response codes are:</p>\n<ul>\n<li>201 - CREATED - if folder/asset has been copied to a non-existing destination.</li>\n<li>204 - NO CONTENT - if the folder/asset has been copied to an existing destination.</li>\n<li>412 - PRECONDITION FAILED - if a request header is missing.</li>\n<li>500 - INTERNAL SERVER ERROR - if something else goes wrong.</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","name":"AEM 6.5 Asset API","type":"collection"}},"urlObject":{"protocol":"http","port":"4502","path":["api","assets","aemquickstart","images"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7eabc9b7-4297-4e5b-b587-2014dd0f411d"},{"name":"Move a folder or an asset","id":"b2cf21a0-ccb5-48e3-a027-110b897f54b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"MOVE","header":[{"key":"Authorization","value":"Bearer {{your_access_token}}"},{"key":"X-Destination","value":"/api/assets/aemquickstart/images/","type":"text"},{"key":"X-Overwrite","value":"T","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:4502/api/assets/aemquickstart/asset.jpg","description":"<p>Moves a folder or asset at the given path to a new destination.</p>\n<p><strong>Request Headers</strong>: The parameters are:</p>\n<ul>\n<li><code>X-Destination</code> - a new destination URI within the API solution scope to copy the resource to.</li>\n<li><code>X-Depth</code> - either <code>infinity</code> or <code>0</code>. Using <code>0</code> only copies the resource and its properties and not its children.</li>\n<li><code>X-Overwrite</code> - Use either <code>T</code> to force delete an existing resources or <code>F</code> to prevent overwriting an existing resource.</li>\n</ul>\n<p><strong>Request</strong>: <code>MOVE /api/assets/myFolder -H\"X-Destination: /api/assets/myFolder-moved\"</code></p>\n<p>Do not use <code>/content/dam</code> in the URL. A sample command to move assets and overwriting existing ones is:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-shell\">curl -u admin:admin -X MOVE https://[aem_server]:[port]/api/assets/source/file.png -H \"X-Destination: https://[aem_server]:[port]/api/assets/destination/file.png\" -H \"X-Overwrite: T\"\n\n</code></pre>\n<p>CopyToggle Text Wrapping</p>\n<p><strong>Response codes</strong>: The response codes are:</p>\n<ul>\n<li>201 - CREATED - if folder/asset has been copied to a non-existing destination.</li>\n<li>204 - NO CONTENT - if the folder/asset has been copied to an existing destination.</li>\n<li>412 - PRECONDITION FAILED - if a request header is missing.</li>\n<li>500 - INTERNAL SERVER ERROR - if something else goes wrong.</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","name":"AEM 6.5 Asset API","type":"collection"}},"urlObject":{"protocol":"http","port":"4502","path":["api","assets","aemquickstart","asset.jpg"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"48822d06-244d-46e7-9c29-31bd2228be57","name":"Move a folder or an asset","originalRequest":{"method":"MOVE","header":[{"key":"Authorization","value":"Bearer {{your_access_token}}"},{"key":"X-Destination","value":"/api/assets/aemquickstart/images","type":"text"},{"key":"X-Overwrite","value":"T","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:4502/api/assets/aemquickstart/asset.jpg"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 05 Aug 2023 03:42:06 GMT"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Location","value":"/api/assets/aemquickstart/asset.jpg.json"},{"key":"Content-Type","value":"application/json;charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"class\": [\n        \"core/response\"\n    ],\n    \"properties\": {\n        \"path\": \"/api/assets/aemquickstart/asset.jpg\",\n        \"parentLocation\": \"/api/assets/aemquickstart.json\",\n        \"referer\": \"\",\n        \"isCreate\": true,\n        \"changes\": [\n            {\n                \"argument\": [\n                    \"/api/assets/aemquickstart/asset.jpg\",\n                    \"/api/assets/aemquickstart/images\"\n                ],\n                \"type\": \"moved\"\n            }\n        ],\n        \"location\": \"/api/assets/aemquickstart/asset.jpg.json\",\n        \"status.message\": \"Content created /api/assets/aemquickstart/images\",\n        \"status.code\": 201\n    }\n}"}],"_postman_id":"b2cf21a0-ccb5-48e3-a027-110b897f54b6"},{"name":"Delete Asset","id":"3620327f-167e-49d3-93b2-71d8426b7425","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{your_access_token}}"}],"url":"http://localhost:4502/api/assets/aemquickstart/imges/asset.jpg","description":"<p>Deletes a resource (-tree) at the provided path.</p>\n<p><strong>Request</strong></p>\n<ul>\n<li><code>DELETE /api/assets/myFolder</code></li>\n<li><code>DELETE /api/assets/myFolder/myAsset.png</code></li>\n<li><code>DELETE /api/assets/myFolder/myAsset.png/renditions/original</code></li>\n</ul>\n<p><strong>Response codes</strong>: The response codes are:</p>\n<ul>\n<li>200 - OK - if folder has been deleted successfully.</li>\n<li>412 - PRECONDITION FAILED - if root collection cannot be found or accessed.</li>\n<li>500 - INTERNAL SERVER ERROR - if something else goes wrong.</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","name":"AEM 6.5 Asset API","type":"collection"}},"urlObject":{"protocol":"http","port":"4502","path":["api","assets","aemquickstart","imges","asset.jpg"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3620327f-167e-49d3-93b2-71d8426b7425"},{"name":"Delete Folder","id":"dbd67d20-2645-48b1-a4f6-dd54300a925f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{your_access_token}}"}],"url":"http://localhost:4502/api/assets/aemquickstart/dispatcher","description":"<p>Deletes a resource (-tree) at the provided path.</p>\n<p><strong>Request</strong></p>\n<ul>\n<li><code>DELETE /api/assets/myFolder</code></li>\n<li><code>DELETE /api/assets/myFolder/myAsset.png</code></li>\n<li><code>DELETE /api/assets/myFolder/myAsset.png/renditions/original</code></li>\n</ul>\n<p><strong>Response codes</strong>: The response codes are:</p>\n<ul>\n<li>200 - OK - if folder has been deleted successfully.</li>\n<li>412 - PRECONDITION FAILED - if root collection cannot be found or accessed.</li>\n<li>500 - INTERNAL SERVER ERROR - if something else goes wrong.</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","name":"AEM 6.5 Asset API","type":"collection"}},"urlObject":{"protocol":"http","port":"4502","path":["api","assets","aemquickstart","dispatcher"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"dbd67d20-2645-48b1-a4f6-dd54300a925f"},{"name":"Delete Asset Rendition","id":"67d71322-6f9d-4349-897e-05dd84c4c0ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{your_access_token}}"}],"url":"http://localhost:4502/api/assets/aemquickstart/images.jpg/renditions/web-rendition","description":"<p>Deletes a resource (-tree) at the provided path.</p>\n<p><strong>Request</strong></p>\n<ul>\n<li><code>DELETE /api/assets/myFolder</code></li>\n<li><code>DELETE /api/assets/myFolder/myAsset.png</code></li>\n<li><code>DELETE /api/assets/myFolder/myAsset.png/renditions/original</code></li>\n</ul>\n<p><strong>Response codes</strong>: The response codes are:</p>\n<ul>\n<li>200 - OK - if folder has been deleted successfully.</li>\n<li>412 - PRECONDITION FAILED - if root collection cannot be found or accessed.</li>\n<li>500 - INTERNAL SERVER ERROR - if something else goes wrong.</li>\n</ul>\n","auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":true,"source":{"_postman_id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","id":"8405c09d-55e3-4535-a6f0-96eb96b1493d","name":"AEM 6.5 Asset API","type":"collection"}},"urlObject":{"protocol":"http","port":"4502","path":["api","assets","aemquickstart","images.jpg","renditions","web-rendition"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"67d71322-6f9d-4349-897e-05dd84c4c0ff"}],"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]}},"event":[{"listen":"prerequest","script":{"id":"be9b8958-9bf8-47e6-a115-d0ecf93d1529","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"262a8271-f662-4d6f-933d-b1f485b3d54b","type":"text/javascript","exec":[""]}}]}