Api session event editor scenario

From Tygron Support wiki
Jump to navigation Jump to search

API Endpoint: api/session/event/editorscenario/

API endpoints for Scenario editing.

Name Description
add Add new Scenario.
append_attribute Appended to existing Scenario numeric Attribute value
duplicate Duplicate existing Scenario
remove Remove existing Scenario
remove_attribute Remove numeric Attribute from Scenario
set_active Activate Scenario. If a test run is active, the Scenario can restart it.
set_attribute Set Scenario numeric Attribute value
set_attributes Set multiple Scenario numeric Attribute values
set_name Set new name of existing Scenario

Additional API endpoints:

Name Description
add_event Add a placeholder event that is Triggered on Scenario activation.
add_measure Add a Measure that is Triggered on Scenario activation.
remove_cinematic Remove Cinematic
remove_event Remove Event
remove_measure Remove Measure
set_cinematic Set Cinematic
set_description Set Description
set_event Set Event
set_limit_neighborhoods Set Limit Neighborhoods
set_limit_type Set Limit Type
set_restart_testrun If true, the test run is restarted on Scenario activation. Deprecated in favor of multiple maps.