Class Index

Classes


Create

Creates empty files and folders
Defined in: create.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Create(paths, verbose, fields)
For every path "paths", this endpoint creates an empty file or folder.
Class Detail
Create(paths, verbose, fields)
For every path "paths", this endpoint creates an empty file or folder.
Parameters:
paths
An array of paths to create [ "destination/path/NewDirectory/", "destination/path/NewFile.txt" ]
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:
[{theCreatedItemsInfo}, ... ]
/wf/restapi/v2/create

Parameters:
paths=["destination/path/NewDirectory/","destination/path/NewFile.txt"]

 Response:
 [
	 {
	   "path": "destination/path/NewDirectory/"
	 },
	 {
	   "id": 201629298
	 }
 ]
/wf/restapi/v2/create

Parameters:
paths=["destination/path/NewDirectory/","destination/path/NewFile.txt"]
verbose=true

 Response:
 [
	 {
	   "path": "destination/path/NewDirectory/",
	   "name": "NewDirectory",
	   "resolver": "directory://247"
	 },
	 {
	   "id": 201629299,
	   "name": "NewFile.txt",
	   "path": "destination/path/NewFile.txt",
	   "height": 0,
	   "width": 0,
	   "bytes": 0,
	   "lastModified": 1507833926000,
	   "mimeType": "text/plain",
	   "previews": {
		 "thumbnail": "../servlet/jb.view?table=thumbnails&col=thumbnails&id=pe_323031363239323939",
		 "viewex": "../servlet/jb.view?table=viewex&col=viewex&id=pe_323031363239323939",
		 "downloadUrl": "../servlet/dload?id=201629299"
	   }
	 }
 ]

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