sto_share

def sto_share(file_path: str, collection_name: str = None) -> dict

Source code

Parameters:

  • file_path (str): Path to the file to share

  • collection_name (str): Name of the collection/agent (optional)

Returns:

Success response (Dict):

{
    "file_name": str,       # Name of the shared file
    "file_path": str,       # Path to the file
    "share_link": str,      # Public URL for accessing the file
    "expires_in": str,      # "7 days"
    "last_modified": str    # ISO format timestamp
}

Failure response (Dict):

{
    "error": str  # Error message
}

Last updated