Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Sv translation
languageen

Allows editing the meta information of a single file from file storage.

Description

Status
colourGreen
titleGET
   /file_storage/modify_file.php?company=RTI_COMPANYKEY&import=IMPORTKEY&file=UUID&action=action

Parameters

parameterParameterdescriptionDescriptiontypeTypehintNotemandatoryMandatory
companyRTI company keystring
yes
importRTI import keystring
yes
fileUUID of requested filestringYou 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
actionaction typestring

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
namenew name of filestringonly relevant if action "RENAME"(yes)
pathnew path of filestring

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



Return

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

examples

Example calls

Code Block
titleset a new name
https://map.yellowfox.de/rti/file_storage/modify_file.php?company=COMPANY_RTIKEY&
vehicle
import=IMPORT_RTIKEY&file=UUID&action=RENAME&name=
new name
neuer name


Code Block
titlemove file
https://map.yellowfox.de/rti/file_storage/modify_file.php?company=COMPANY_RTIKEY&
vehicle
import=IMPORT_RTIKEY&file=UUID&action=MOVE&path=
images,photos
Bilder/Fotos