Storage
The Storage Activity allows you to perform two operations: creating a folder and uploading a file.
Make a Folder
Creates a folder in the specified directory. If the folder name is left blank, the folder will be created in the root directory.
| Property | Description | Required | Default |
|---|---|---|---|
| Folder Name | Name of the folder to be created. | Yes | Root Directory |
Response
| Field | Description |
|---|---|
| message | Status message confirming the directory creation. |
Example Response:
{
"result": {
"message": "Directory \"folder_name\" created successfully."
}
}
Upload File
Uploads a file to the specified directory. If the folder path is left blank, the file will be saved to the root location.
| Property | Description | Required | Default |
|---|---|---|---|
| File Content | URL, content, or Base64-encoded data for the file. | Yes | - |
| File Name | Name of the file. | Yes | - |
| Folder Path | If left blank, the file will be saved to the root location. | No | Root Directory |
| Overwrite | Option to overwrite an existing file with the same name. | No | - |
| Shareable Link | Toggle switch that, when enabled, generates a shareable link for the file. | No | False |
| Expire In | Sets the expiration time for the link (1 minute to 30 days). | No | 60 minutes |
Response
| Field | Description |
|---|---|
| message | Status message confirming the upload. |
| path | The path where the uploaded file is stored. |
| shareable_link (Optional) | A URL to access the uploaded file (only available if Shareable Link is enabled). |
Example Response:
{
"result": {
"message": "File uploaded successfully",
"path": "file_name.json",
"shareable_link": "http://link_for_uploaded_file.com"
}
}