Projects
Create, share, clone and back up projects.
Create a project
Open Projects, choose to create one, and fill in the form: Project Name (required), Description, Project Template, the Environment panel and ML Framework. Then press Create Project.
- Project names are unique across the whole installation. Creating a second project with an existing name returns an error.
- Templates on the form: custom, classification, regression, clustering, deep-learning.
- Frameworks: scikit-learn (default), tensorflow, pytorch, xgboost, lightgbm, custom.
- Visibility is private by default. The other value is public.
curl -X POST http://127.0.0.1:5001/api/v1/projects \
-H "X-API-Key: <your-key>" -H "Content-Type: application/json" \
-d '{"name": "churn-model", "description": "Customer churn", "template": "classification", "framework": "scikit-learn"}'
The response is 201 with {"success": true, "data": {...}}. A missing login returns 401 and a duplicate name returns 400.
A new project gets the folders data, models, notebooks and scripts, plus a README.md and scripts/train_example.py. It uses your shared Python environment unless you choose otherwise.
The project page
A project page has four tabs: Visual Pipeline (the workflow editor), Experiments, Models and Project Info.
Statuses
A project status is one of active, archived, initializing or environment_setup. Archive and restore a project from its menu or with the routes below.
List and find projects
GET /api/v1/projects returns only your own projects, as {success, data}.
| Parameter | Values |
|---|---|
| status | active, archived or all |
| framework | a framework name |
| industry | an industry profile id |
| search | text to match |
| sort | name, updated_at or created_at |
| order | asc or desc |
Project routes
All routes below are under /api/v1. They check that you are signed in. Reading one project needs you to be its owner or an administrator, otherwise the answer is 403.
| Route | What it does |
|---|---|
| GET /projects/<project_id> | Read a project. |
| PUT /projects/<project_id> | Update name, description, framework, template, environment_name, workflow_auto_install_enabled or workflow_environment_mode. The response key is project, not data. |
| DELETE /projects/<project_id> | Delete the project's database records and workflows. The virtual environment is kept. The code does not delete the project folder. |
| POST /projects/<project_id>/archive | Archive. |
| POST /projects/<project_id>/restore | Restore an archived project. |
| GET /projects/<project_id>/stats | experiment_count, completed_count, running_count, failed_count, best_experiment, metric_history, workflow_count, dataset_count. |
| POST /projects/<project_id>/clone | Body name and description. Copies configuration and the directory. Experiments and workflows are not copied. |
Snapshots
A snapshot saves the project's name, description, framework, template and industry settings so you can return to them.
| Route | What it does |
|---|---|
| GET /projects/<project_id>/snapshots | List snapshots. |
| POST /projects/<project_id>/snapshots | Create one. Optional body field label. |
| GET /projects/<project_id>/snapshots/<version> | Read one. |
| POST /projects/<project_id>/snapshots/<version>/restore | Restore. The current state is saved as a snapshot first. |
| GET /projects/<project_id>/snapshots/compare?v1=1&v2=2 | Returns a changes list. |
Project templates
Save a project as a template and start new projects from it.
| Route | What it does |
|---|---|
| GET /project-templates | Filters: visibility (all, mine, public), framework, search. |
| GET /project-templates/<id> | Read one. |
| POST /projects/<project_id>/save-template | Body name, description, visibility, tags. At most 20 tags, each at most 50 characters. |
| POST /project-templates/<id>/use | Body name (required). Returns project_id and name. |
| PUT or DELETE /project-templates/<id> | Edit or remove. |
Collaborators and visibility
| Route | What it does |
|---|---|
| GET or POST /projects/<project_id>/collaborators | List, or invite by user name. Role is editor or viewer. Only the owner can invite. The invitation starts as pending. |
| PUT or DELETE /projects/<project_id>/collaborators/<target_user_id> | Change a role or remove a person. |
| POST /projects/<project_id>/collaborators/accept | The invited person accepts. |
| POST /projects/<project_id>/collaborators/decline | The invited person declines. |
| PUT /projects/<project_id>/visibility | Set private or public. Owner only. |
| GET /projects/<project_id>/activity | Activity log. The limit parameter defaults to 50, maximum 200. |
Project environments
Each project can use the shared environment of its owner, its own environment, or a dedicated plugin runtime environment. The workflow_environment_mode field holds one of shared, project or plugin_dedicated.
| Route | What it does |
|---|---|
| GET /projects/<project_id>/environment | Read the environment state. |
| POST /projects/<project_id>/environment/create | Body {"mode": "project"} or {"mode": "plugin_dedicated"}. |
| POST /projects/<project_id>/environment/switch | Body {"mode": ...}. |
| POST /projects/<project_id>/environment/packages/install | Body {"package": "name"}. |
| POST /projects/<project_id>/environment/packages/uninstall | Body {"package": "name"}. pip, setuptools and wheel are protected and cannot be uninstalled. |
Environment names are project_<id>_env and project_<id>_plugin_runtime_env. A new environment starts with numpy, pandas, matplotlib, seaborn and scikit-learn, plus tensorflow for the tensorflow framework, torch and torchvision for pytorch, xgboost for xgboost, and lightgbm for lightgbm.
Named environments
| Route | What it does |
|---|---|
| GET /api/v1/environments | List environments. |
| POST /api/v1/environments | Create. Name may contain letters, digits, hyphens and underscores, up to 100 characters. Optional packages list. |
| GET or DELETE /api/v1/environments/<name> | Read or delete. |
| GET or POST /api/v1/environments/<name>/packages | List or install packages. |
| DELETE /api/v1/environments/<name>/packages/<package> | Uninstall a package. |