Allows editing the meta information of a single file from file storage. Description /file_storage/modify_file.php?company=RTI_COMPANYKEY&import=IMPORTKEY&file=UUID&action=action ParametersparameterParameter | descriptionDescription | typeType | hintNote | mandatoryMandatory |
---|
company | RTI company key | string |
| yes | import | RTI import key | string |
| yes | file | UUID of requested file | string | You can receive this value via file_storage/get_overview.php or a sreturn value from file_storage/upload_file.php, if the file was directly uploaded via RTI. | yes | action | action type | string | possible values: - BIN: move file to bin
- DELETE: delete file permanently (attention: This removes the file permanently so it can not be restored!)
- RESTORE: restore a file from bin
- RENAME: change shown name of file
- MOVE: move file to another directory
| yes | name | new name of file | string | only relevant if action "RENAME" | (yes) | path | new path of file | string | only relevant if action "MOVE" Format: folder/subfolder/.../target folder (separated by /) Root does not have to be specified. To move the file to root directory, just leave the param empty. Paths are case insensitive. | (no) |
return
ReturnOn success you will receive "OK". On missing parameters or errors you will receive "ERROR:description". examplesExample calls Code Block |
---|
| https://map.yellowfox.de/rti/file_storage/modify_file.php?company=COMPANY_RTIKEY& | vehicleimport=IMPORT_RTIKEY&file=UUID&action=RENAME&name= | new name
Code Block |
---|
| https://map.yellowfox.de/rti/file_storage/modify_file.php?company=COMPANY_RTIKEY& | vehicleimport=IMPORT_RTIKEY&file=UUID&action=MOVE&path= | images,photos
|