Class Index

Classes


Move

Moves files and directories.
Defined in: move.js.

Class Summary
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=201628784"
	   }
	 }
 ]

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Aug 06 2018 16:08:51 GMT-0500 (CDT)