Skip to main content

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.

PropertyDescriptionRequiredDefault
Folder NameName of the folder to be created.YesRoot Directory

Response

FieldDescription
messageStatus 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.

PropertyDescriptionRequiredDefault
File ContentURL, content, or Base64-encoded data for the file.Yes-
File NameName of the file.Yes-
Folder PathIf left blank, the file will be saved to the root location.NoRoot Directory
OverwriteOption to overwrite an existing file with the same name.No-
Shareable LinkToggle switch that, when enabled, generates a shareable link for the file.NoFalse
Expire InSets the expiration time for the link (1 minute to 30 days).No60 minutes

Response

FieldDescription
messageStatus message confirming the upload.
pathThe 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"
}
}