You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Allows editing and creating directories in file storage.

description

GET  /file_storage/modify_directory.php?company=RTI_COMPANYKEY&import=IMPORTKEY&action=action

parameters

parameterdescriptiontypehintmandatory
companyRTI company keystring
yes
importRTI import keystring
yes
actionaction typestring

possible values:

  • NEW: create new directory
  • RENAME: rename existing directory
  • MOVE: move directory
  • DELETE: delete directory, contained files will be moved to bin
yes
directorypath to directorystring

format: directory,sub directory,...,affected directory (comma-separated)

Root does not have to be specified. To move the file to root directory, just leave the param empty

nicht relevant bei Aktionstyp NEW

(yes)


namedirectory namestring

name of directory

only for action types

  • NEW (= name of new folder)
  • RENAME (= new name of folder)
(yes)
pathpath to directory

format: directory,sub directory,...,affected directory (comma-separated)

Root does not have to be specified. To move the file to root directory, just leave the param empty

only for action types

  • NEW (= path to parent directory )
  • MOVE (=path to new parent directory)
(yes)


System directories can not be removed.

Root can not be renamed.

return

On success you will receive "OK". On missing parameters or errors you will receive "ERROR:description".

examples

create new directory

http://map.yellowfox.de/rti/file_storage/modify_directory.php?company=COMPANY_RTIKEY&import=IMPORT_RTIKEY&action=NEW&directory=images&name=Fotos


set new name

http://map.yellowfox.de/rti/file_storage/modify_directory.php?company=COMPANY_RTIKEY&import=IMPORT_RTIKEY&action=RENAME&directory=images&name=new name


move directory

http://map.yellowfox.de/rti/file_storage/modify_directory.php?company=COMPANY_RTIKEY&import=IMPORT_RTIKEY&action=MOVE&directory=images,photos&path=memories

  • No labels