{"__v":1,"_id":"54aed028194a5f1f00a1d172","category":{"__v":17,"_id":"543435b1edce040800409240","pages":["5434906a5b10711400c6c45b","543492315b10711400c6c474","5480a347a3e4ea22000976c4","5480a36ea3e4ea22000976c5","5480a568e952bb1a006b31fb","54ae8b0686f2690b0072b76f","54aeac7b86f2690b0072b7ac","54aeae133697fc1600d894e3","54aed028194a5f1f00a1d172","54aed212194a5f1f00a1d176","54aedfb4194a5f1f00a1d199","54aee0eb194a5f1f00a1d19e","54aee1aa194a5f1f00a1d1a3","54bd5f54c264d50c00d9ef7e","54bd5f5aa0d4080c005f5449","54bd6b1fc264d50c00d9ef8e","559a9069155eef1700f4e68a"],"project":"54343170fa5527080064f449","version":"54343531bfaa3d0800c4d4af","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-07T18:49:21.998Z","from_sync":false,"order":2,"slug":"assets","title":"Assets"},"editedParams":true,"editedParams2":true,"parentDoc":null,"project":"54343170fa5527080064f449","user":"54343147fa5527080064f43f","version":{"__v":27,"_id":"54343531bfaa3d0800c4d4af","forked_from":"54343170fa5527080064f44c","project":"54343170fa5527080064f449","createdAt":"2014-10-07T18:47:13.086Z","releaseDate":"2014-10-07T18:47:13.086Z","categories":["54343531bfaa3d0800c4d4b0","543435b1edce040800409240","543435b9edce040800409241","543435bcedce040800409243","543435bfedce040800409244","543435c2edce040800409245","54370cc426469424002a6dfa","54370cf026469424002a6dfd","5437129d26469424002a6e2f","543712d226469424002a6e30","5480c8fd74904f1a00053c86","54aafc6eefb39016009e4d71","54ac1d36de18cc1400226e01","54ad59369219922100751732","54b41bcf4f25cb1600518d2c","54b533a3a806f40c0050d53c","54b54bbf96fe3c0b00d38d2a","54b688a27379a90c00f53a8a","54b699efbc1a46160005edfa","54b8191691011f0b00068804","54bfb002d03bfc0d0000e814","54bfb33ed03bfc0d0000e816","55a3e94e912a6e2300882cdb","55a56c370f354f0d00fd02a8","55e85ad034516037002e9325","5638ecb62fc5520d001a4cf9","572cba2fc310640e008f63d5"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"3.0.0","version":"3.0"},"updates":["54c2c5abc2481c0d00b2f938"],"next":{"pages":[],"description":""},"createdAt":"2015-01-08T18:44:56.835Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"method":"post","results":{"codes":[{"name":"","code":"// Returns the new asset id on success.\n{\n    \"id\": \"73bb4bb9-de6f-4dae-aefd-1f8f51f4d9f8\"\n}","language":"json","status":200}]},"auth":"required","params":[{"_id":"54aeac7b86f2690b0072b7b1","ref":"","in":"path","required":true,"desc":"ID of the destination folder","default":"","type":"string","name":"destinationFolderId"},{"_id":"54aeac7b86f2690b0072b7b0","ref":"","in":"path","required":true,"desc":"ID of the asset to copy","default":"","type":"string","name":"assetId"},{"_id":"54aeac7b86f2690b0072b7af","ref":"","in":"body","required":false,"desc":"True to copy all comments to the new asset","default":"","type":"boolean","name":"includeComments"},{"_id":"54aeac7b86f2690b0072b7ae","ref":"","in":"body","required":false,"desc":"True to copy all metadata to the new asset","default":"","type":"boolean","name":"includeMetadata"},{"_id":"54aeac7b86f2690b0072b7ad","ref":"","in":"body","required":false,"desc":"True to copy all tags to the new asset","default":"","type":"boolean","name":"includeTags"}],"url":"/folders/:destinationFolderId/assets/:assetId/copy"},"isReference":false,"order":10,"body":"Copies an asset to the specified folder. Copying an asset creates a new asset but does not count towards the account storage limits.\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Permissions\",\n  \"body\": \"The current user must be able to create/upload assets to the project that contains the destination folder.\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Performing a move with multiple assets\",\n  \"body\": \"To move multiple assets, use the BATCH endpoint.\"\n}\n[/block]","excerpt":"Copies an asset to a destination folder","slug":"copy-to-folder","type":"endpoint","title":"Copy to Folder"}

postCopy to Folder

Copies an asset to a destination folder

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

destinationFolderId:
required
string
ID of the destination folder
assetId:
required
string
ID of the asset to copy

Body Params

includeComments:
boolean
True to copy all comments to the new asset
includeMetadata:
boolean
True to copy all metadata to the new asset
includeTags:
boolean
True to copy all tags to the new asset

Result Format


Documentation

Copies an asset to the specified folder. Copying an asset creates a new asset but does not count towards the account storage limits. [block:callout] { "type": "warning", "title": "Permissions", "body": "The current user must be able to create/upload assets to the project that contains the destination folder." } [/block] [block:callout] { "type": "info", "title": "Performing a move with multiple assets", "body": "To move multiple assets, use the BATCH endpoint." } [/block]

User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}