Planning API
Generated from servtuner commit 5b46cdad0e5c.
POST /plans
Section titled “POST /plans”Plan replicas, HPA and totals from the runs’ capacity models.
Request body: PlanCreate (application/json)
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | Plan |
GET /scenarios
Section titled “GET /scenarios”Saved scenarios, newest first.
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | array of ScenarioResource |
POST /scenarios
Section titled “POST /scenarios”Save a scenario under a name; its runs must exist and its request must be valid.
Request body: ScenarioCreate (application/json)
| Status | Meaning | Body |
|---|---|---|
201 |
Successful Response | ScenarioResource |
POST /scenarios/evaluate
Section titled “POST /scenarios/evaluate”The workbench’s recompute: the same as POST /plans (models, inputs, overrides).
Request body: PlanCreate (application/json)
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | Plan |
DELETE /scenarios/{scenario_id}
Section titled “DELETE /scenarios/{scenario_id}”Deletes a saved scenario.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
scenario_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
204 |
Successful Response | None |
422 |
Validation Error | HTTPValidationError |
GET /scenarios/{scenario_id}
Section titled “GET /scenarios/{scenario_id}”Returns one saved scenario.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
scenario_id |
path | string |
Yes |
| Status | Meaning | Body |
|---|---|---|
200 |
Successful Response | ScenarioResource |
422 |
Validation Error | HTTPValidationError |