break_preset_link
break_preset_link
Service for breaking preset scenario links.
Classes
BreakPresetLinkRunner
Bases: BaseRunner[Dict[str, Any]]
Runner for breaking the preset link on a scenario.
This sets the preset_scenario_id to nil, making the scenario independent from its parent preset scenario.
PUT /api/v3/scenarios/{scenario_id}
Functions
run
staticmethod
Break the preset link for a scenario.
This makes the scenario independent by removing its connection to the preset scenario it was copied from.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
client
|
BaseClient
|
The HTTP client to use |
required |
scenario
|
Union[Any, int]
|
The scenario object (must have an 'id' attribute) or scenario ID |
required |
**kwargs
|
Any
|
Additional arguments passed to the request |
{}
|
Example usage
result = BreakPresetLinkRunner.run( client=client, scenario=scenario_obj )
Or with scenario ID:
result = BreakPresetLinkRunner.run( client=client, scenario=123456 )