Allows editing the meta information of a single file from file storage.
Description
GET /file_storage/modify_file.php?company=RTI_COMPANYKEY&import=IMPORTKEY&file=UUID&action=action
Parameters
Parameter | Description | Type | Note | Mandatory |
---|---|---|---|---|
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:
| 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
On success you will receive "OK". On missing parameters or errors you will receive "ERROR:description".
Example calls
set a new name
https://map.yellowfox.de/rti/file_storage/modify_file.php?company=COMPANY_RTIKEY&import=IMPORT_RTIKEY&file=UUID&action=RENAME&name=neuer name
move file
https://map.yellowfox.de/rti/file_storage/modify_file.php?company=COMPANY_RTIKEY&import=IMPORT_RTIKEY&file=UUID&action=MOVE&path=Bilder/Fotos