A Streamlit application for moving documents between folders in Omni using the Omni API.
- Move documents between folders
- Set document scope (organization/restricted)
- Simple and intuitive user interface
- Real-time feedback on API operations
- Secure API token handling
- Clone this repository:
git clone <repository-url>
cd omni-development- Install dependencies:
pip install -r requirements.txt- Run the application:
streamlit run app.py- Launch the application using
streamlit run app.py - In the sidebar, enter your:
- Omni API token
- Omni organization URL (e.g., https://myorg.omniapp.co)
- In the main form, provide:
- Document ID (found in File > Document settings)
- Destination folder path (e.g., "marketing/campaigns")
- Optional: Document scope (organization/restricted)
- Click "Move Document" to execute the move operation
You can optionally create a .env file with the following variables:
OMNI_API_TOKEN=your_api_token
OMNI_BASE_URL=your_organization_url
The application handles various API response codes:
- 200: Successful move
- 400: Bad request (e.g., scope mismatch)
- 403: Forbidden (insufficient permissions)
- 404: Document or folder not found
- 429: Too many requests