This example demonstrates how to import and update Unit Operations (UOs) using the QbDVision REST API with Python.
- Python 3.13 or higher
- A QbDVision API key
- Create a project in QbDVision and note the project and process ID that you want to import data into.
- Edit
ImportCookies.py
and replaceYOUR_API_KEY
with your QbDVision API key. - Modify
BASE_URL
to point to your QbDVision environment if you're not using Sandbox. - Modify
PROJECT_ID
andPROCESS_ID
to be the project and process ID you identified in step 1. - Run the script
python3 ImportCookies.py
- Run the import script to create the UOs in QbDVision.
- Edit
UpdateCookies.py
and replaceYOUR_API_KEY
with your QbDVision API key. - Modify
BASE_URL
to point to your QbDVision environment if you're not using Sandbox. - Modify
PROJECT_ID
andUNIT_OPERATION_ID
to be the project and unit operation ID you want to update (likely created during import). - Run the script
python3 UpdateCookies.py
- Use environment variables for API keys
- Implement proper error handling and retries
- Add logging/reporting according to your company's standards
- Use the latest versions of all libraries