Move
Moves files and directories.
Defined in: move.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Move(data, verbose, fields)
Given the files/directories in "data" , this endpoint moves them to their destination directory
|
Class Detail
Move(data, verbose, fields)
Given the files/directories in "data" , this endpoint moves them to their destination directory
- Parameters:
- data
- an array of files/directories and their destinations [{"directory":"To/Move/, "dest": "Destination/Folder"}, {"id" : 123456, "dest":"Destination/Folder"}, ...]
- verbose Optional, Default: false
- Setting this to true will collect a variety of default values for each asset.
- fields Optional
- An array of field id's to collect the values for each asset
- Returns:
- [{assetInfo},{directoryInfo}, ... ]
/wf/restapi/v2/move
Parameters:
data=[{"directory":"To/Move/","dest":"Destination/Folder/"},{"id":201628784,"dest":"Destination/Folder/"}]
verbose=true
Response:
[
{
"path": "Destination/Folder/Move/",
"name": "Move",
"resolver": "directory://261"
},
{
"id": 201628784,
"name": "test.xmp",
"path": "Destination/Folder/test.xmp",
"height": 1,
"width": 1,
"bytes": 2048,
"lastModified": 1507578488000,
"mimeType": "application/octet-stream",
"previews": {
"thumbnail": "../servlet/jb.view?table=thumbnails&col=thumbnails&id=pe_323031363238373834",
"viewex": "../servlet/jb.view?table=viewex&col=viewex&id=pe_323031363238373834",
"downloadUrl": "../servlet/dload?id=pe_323031363238373834"
}
}
]