API Reference (Unit /unit_api)
Conventions
- All Pioreactors have the
/unit_apiendpoints exposed. - Async endpoints return
202 Acceptedwith atask_idandresult_url_path. - Poll
GET /unit_api/task_results/{task_id}untilstatusissucceededorfailed. - File download endpoints return binary bodies; use the response content-type to handle them.
- Path parameters are shown inline in the endpoint URL.
- Request/response examples are the canonical shapes; omit optional fields you do not need.
- Errors have the following schema:
{
"error": "Human-readable error message",
"cause": "Human-readable cause (defaults to error if not set)",
"remediation": "Suggested fix or next step",
"status": 400
}
Pioreactor Unit API
Generated from core/pioreactor/web/unit_api.py.
This file is generated. Edit the API source or generator instead of editing this file by hand.
Endpoint count: 71
Endpoint Index
| Method | Path | Handler |
|---|---|---|
GET | /unit_api/active_calibrations | get_all_active_calibrations |
DELETE | /unit_api/active_calibrations/{device} | remove_active_status_calibration |
PATCH | /unit_api/active_calibrations/{device}/{calibration_name} | set_active_calibration |
GET | /unit_api/active_estimators | get_all_active_estimators |
DELETE | /unit_api/active_estimators/{device} | remove_active_status_estimator |
PATCH | /unit_api/active_estimators/{device}/{estimator_name} | set_active_estimator |
GET | /unit_api/automations/descriptors/{automation_type} | get_automation_descriptors |
GET | /unit_api/bioreactor/experiments/{experiment} | get_bioreactor_values |
PATCH | /unit_api/bioreactor/experiments/{experiment} | update_bioreactor_values |
GET | /unit_api/calibration_protocols | get_calibration_protocols |
GET | /unit_api/calibrations | get_all_calibrations |
GET | /unit_api/calibrations/{device} | get_calibrations_by_device |
POST | /unit_api/calibrations/{device} | create_calibration |
DELETE | /unit_api/calibrations/{device}/{calibration_name} | delete_calibration |
GET | /unit_api/calibrations/{device}/{calibration_name} | get_calibration |
GET | /unit_api/capabilities | get_capabilities |
GET | /unit_api/config/merged | get_merged_config |
GET | /unit_api/config/specific | get_specific_config |
PATCH | /unit_api/config/specific | update_specific_config |
POST | /unit_api/config/specific | update_specific_config |
GET | /unit_api/estimators | get_all_estimators |
GET | /unit_api/estimators/{device} | get_estimators_by_device |
DELETE | /unit_api/estimators/{device}/{estimator_name} | delete_estimator |
GET | /unit_api/estimators/{device}/{estimator_name} | get_estimator |
PATCH | /unit_api/hardware/check | check_hardware_for_model |
POST | /unit_api/hardware/check | check_hardware_for_model |
GET | /unit_api/health | health_check |
POST | /unit_api/import_zipped_dot_pioreactor | import_dot_pioreactor_from_zip |
GET | /unit_api/jobs | get_jobs |
GET | /unit_api/jobs/descriptors | get_job_descriptors |
PATCH | /unit_api/jobs/run/job_name/{job_name} | run_job |
POST | /unit_api/jobs/run/job_name/{job_name} | run_job |
GET | /unit_api/jobs/running | get_all_running_jobs |
GET | /unit_api/jobs/running/{job_name} | get_running_job |
GET | /unit_api/jobs/running/experiments/{experiment} | get_running_jobs_for_experiment |
GET | /unit_api/jobs/settings/job_name/{job_name} | get_job_settings |
PATCH | /unit_api/jobs/settings/job_name/{job_name} | update_job |
GET | /unit_api/jobs/settings/job_name/{job_name}/setting/{setting} | get_job_setting |
PATCH | /unit_api/jobs/stop | stop_jobs |
POST | /unit_api/jobs/stop | stop_jobs |
PATCH | /unit_api/jobs/stop/all | stop_all_jobs |
POST | /unit_api/jobs/stop/all | stop_all_jobs |
GET | /unit_api/long_running_jobs/running | get_all_long_running_jobs |
PATCH | /unit_api/plugins/install | install_plugin |
POST | /unit_api/plugins/install | install_plugin |
GET | /unit_api/plugins/installed | get_installed_plugins |
GET | /unit_api/plugins/installed/{filename} | get_installed_plugin |
PATCH | /unit_api/plugins/uninstall | uninstall_plugin |
POST | /unit_api/plugins/uninstall | uninstall_plugin |
GET | /unit_api/system/path/ | list_system_path |
GET | /unit_api/system/path/{req_path} | list_system_path |
PATCH | /unit_api/system/reboot | reboot_system |
POST | /unit_api/system/reboot | reboot_system |
PATCH | /unit_api/system/remove_file | remove_file |
POST | /unit_api/system/remove_file | remove_file |
PATCH | /unit_api/system/shutdown | shutdown_system |
POST | /unit_api/system/shutdown | shutdown_system |
PATCH | /unit_api/system/update | update_software |
POST | /unit_api/system/update | update_software |
PATCH | /unit_api/system/update/{target} | update_software_target |
POST | /unit_api/system/update/{target} | update_software_target |
GET | /unit_api/system/utc_clock | get_clock_time |
PATCH | /unit_api/system/utc_clock | set_clock_time |
POST | /unit_api/system/utc_clock | set_clock_time |
PATCH | /unit_api/system/web_server/restart | restart_web_server |
POST | /unit_api/system/web_server/restart | restart_web_server |
GET | /unit_api/system/web_server/status | get_web_server_status |
GET | /unit_api/task_results/{task_id} | get_task_status |
GET | /unit_api/versions/app | get_app_version |
GET | /unit_api/zipped_calibrations | get_zipped_calibrations |
GET | /unit_api/zipped_dot_pioreactor | get_zipped_dot_pioreactor |
Get All Active Calibrations
Get All Active Calibrations endpoint.
Endpoint
GET /unit_api/active_calibrations
Response
Success
Status: 200 OK
Example body:
{}
Remove Active Status Calibration
Remove Active Status Calibration endpoint.
Endpoint
DELETE /unit_api/active_calibrations/{device}
Request
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| device | string | Yes | Target device name. |
Response
Success
Status: 200 OK
Example body:
{
"status": "success"
}
Set Active Calibration
Set Active Calibration endpoint.
Endpoint
PATCH /unit_api/active_calibrations/{device}/{calibration_name}
Request
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| device | string | Yes | Target device name. |
| calibration_name | string | Yes | Calibration name. |