Skip to content

comaraDOTcom/omni-move-document-api-streamlit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Omni Document Mover

A Streamlit application for moving documents between folders in Omni using the Omni API.

Features

  • Move documents between folders
  • Set document scope (organization/restricted)
  • Simple and intuitive user interface
  • Real-time feedback on API operations
  • Secure API token handling

Setup

  1. Clone this repository:
git clone <repository-url>
cd omni-development
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the application:
streamlit run app.py

Usage

  1. Launch the application using streamlit run app.py
  2. In the sidebar, enter your:
  3. In the main form, provide:
    • Document ID (found in File > Document settings)
    • Destination folder path (e.g., "marketing/campaigns")
    • Optional: Document scope (organization/restricted)
  4. Click "Move Document" to execute the move operation

Environment Variables

You can optionally create a .env file with the following variables:

OMNI_API_TOKEN=your_api_token
OMNI_BASE_URL=your_organization_url

Error Handling

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages