Allows editing and creating directories in file storage.
description
GET /file_storage/modify_directory.php?company=RTI_COMPANYKEY&import=IMPORTKEY&action=action
parameters
parameter | description | type | hint | mandatory |
---|---|---|---|---|
company | RTI company key | string | yes | |
import | RTI import key | string | yes | |
action | action type | string | possible values:
| yes |
source_path | path to directory | string | format: directory/sub directory/.../affected directory (slash-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) |
name | directory name | string | name of directory only for action types
| (yes) |
destination_path | path to directory | format: directory/sub directory/.../affected directory (slash-separated) Root does not have to be specified. To move the file to root directory, just leave the param empty only for action types
| (yes) | |
recursive | string | Flag if given destination_path has to exist. Relevant for action types
If set to 'true', directories specified in destination path that do not exist will be created first before executing the actual action. Is false by default (this will instead lead to UNKNOWN_DESTINATION_PATH error if you try to access a non-existing path). | no |
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
|
set new name
|
move directory
|