saved_scenario_users_create
saved_scenario_users_create
Service for saved scenario users create operations.
Classes
SavedScenarioUsersCreateRunner
Bases: BaseRunner[List[Dict[str, Any]]]
Runner for adding users to a SavedScenario.
POST /api/v3/saved_scenarios/:saved_scenario_id/users
Note
When a user is added to a saved scenario, they are also automatically added to: - The current scenario (via scenario_id) - All historical scenarios (via scenario_id_history)
Functions
run
staticmethod
Add users to a saved scenario with specified roles.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
client
|
BaseClient
|
The HTTP client to use |
required |
saved_scenario_id
|
int
|
ID of the SavedScenario |
required |
users
|
List[Dict[str, Any]]
|
List of user objects to add, each containing: - user_email: Email address (required) - role: User role - scenario_owner, scenario_collaborator, or scenario_viewer (required) - user_id: ID of existing user (optional, will be auto-coupled if email matches) |
required |
**kwargs
|
Any
|
Additional arguments passed to the request |
{}
|
Returns:
| Type | Description |
|---|---|
ServiceResult[List[Dict[str, Any]]]
|
ServiceResult containing list of created user objects |