Upload a new file to file storage.
Description
POST /file_storage/upload_file.php?company=RTI_COMPANYKEY&import=RTI_IMPORTKEY&path=PATH
Parameters
Query parameters
parameter | description | type | hint | mandatory |
---|---|---|---|---|
company | RTI company key | string | yes | |
import | RTI import key | string | yes | |
file | new file | file | The following file types are currently allowed:
You can only upload one file per request. The maximum file size is 2 MB. | yes |
path | target path | string | Format: folder,subfolder,...,target folder (comma-separated) Root does not have not specified in path. If not set, file will be uploaded to root. | no |
Body parameters
parameter | description | type | hint | mandatory |
---|---|---|---|---|
file | new file | file | The following file types are currently allowed:
You can only upload one file per request. The maximum file size is 2 MB. | yes |
return
If there are errors in the configuration of parameters, you will receive "ERROR:description". If the upload was started, you will receive the result as JSON.
return example
|
On successful upload you will receive the status "OK" and the UUID for the new file. On error you will get the corresponding error message and the UUID will be empty.
You can use the UUID as reference for file_storage/modify_file.php or to attach files via do_order resp. do_message.