update_saved_scenario
update_saved_scenario
Service for updating an existing saved scenario.
Classes
UpdateSavedScenarioRunner
Bases: BaseRunner[Dict[str, Any]]
Runner for updating a SavedScenario in MyETM.
PUT /api/v3/saved_scenarios/:id
Functions
run
staticmethod
Update an existing SavedScenario in MyETM.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
client
|
BaseClient
|
The HTTP client to use |
required |
saved_scenario_id
|
int
|
ID of the SavedScenario to update |
required |
update_data
|
Dict[str, Any]
|
Dictionary with fields to update (title, private, discarded) |
required |
**kwargs
|
Any
|
Additional arguments passed to the request |
{}
|
Example usage
result = UpdateSavedScenarioRunner.run( client=client, saved_scenario_id=123, update_data={ "title": "Updated Title", "private": False } )