Tuning sessions API
Generated from servtuner commit 5b46cdad0e5c.
GET /tuning-sessions
Section titled “GET /tuning-sessions”Lists tuning sessions.
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | array of SessionResource |
POST /tuning-sessions
Section titled “POST /tuning-sessions”Start a session. One at a time (409 while another is active): they share the GPU.
Request body: SessionCreate (application/json)
| Status | Meaning | Body |
|---|---|---|
201 |
Successful Response | SessionResource |
GET /tuning-sessions/{session_id}
Section titled “GET /tuning-sessions/{session_id}”Returns one tuning session.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
session_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | SessionResource |
422 |
Validation Error | HTTPValidationError |
POST /tuning-sessions/{session_id}/approve
Section titled “POST /tuning-sessions/{session_id}/approve”Manual mode: run the step the session proposed.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
session_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | SessionResource |
422 |
Validation Error | HTTPValidationError |
POST /tuning-sessions/{session_id}/cancel
Section titled “POST /tuning-sessions/{session_id}/cancel”Stop issuing steps and free the GPU; a run already started finishes on its own.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
session_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | SessionResource |
422 |
Validation Error | HTTPValidationError |