DAM: Folders

Copy files or folders to a target folder

Copies multiple files and/or folders into the destination folder specified. Process is run synchronously, so response time is potentially long. Only 'file' and 'folder' resources can be copied into a folder.

post/dam/folders/{folder_id}/copy-to

Request

Path parameters

folder_idstring required
Example:1234

Destination Folder ID

Request body

Example request

{
  "data": {
    "type": "copy_to_folder",
    "relationships": {
      "sources": {
        "data": [
          {
            "type": "file",
            "id": "1234"
          },
          {
            "type": "folder",
            "id": "12345"
          }
        ]
      }
    }
  },
  "meta": {
    "file_conflict_resolution": "rename"
  }
}

Response

Copy completed successfully

Example response

{
  "meta": {
    "state": "completed",
    "summary": {
      "copied_folder_count": 1,
      "copied_file_count": 12,
      "copied_sub_folder_count": 123
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.