galileo_sdk.sdk.missions.MissionsSdk.update_mission¶
- MissionsSdk.update_mission(mission_id, name=None, description=None, source_storage_id=None, destination_storage_id=None, source_path=None, destination_path=None, settings=None)[source]¶
Update the settings and metadata associated with a Mission context.
- Parameters
mission_id – str: UUID of the Mission you are updating
name – str: Mission name after update
destination_path – Optional[str]: Storage destination Cargo Bay root path after update
source_path – Optional[str]: Storage source Cargo Bay root path after update
destination_storage_id – Optional[str]: Storage destination Cargo Bay UUID after update
source_storage_id – Optional[str]: Storage source Cargo Bay UUID after update
description – Optional[str]: Mission description after update
public – Optional[bool]: Boolean flag determining if the Mission is publicly viewable.
settings – Optional[Dict[str, str]]: Mission framework setting to be applied after update
- Returns
Bool: Success flag
Example:
>>> my_missions = galileo.missions.list_missions() >>> print("Old Mission Name: ", my_missions[0].name) >>> success = galileo.missions.update_mission(my_missions[0].mission_id, "New Name")