Initializing help system before first use

xpressinsight.scenario.InsightRestClient.move_scenario

Purpose
Move a scenario to a different folder or the app root.
Synopsis
xpressinsight.scenario.InsightRestClient.move_scenario(self, scenario_id: str, new_parent: Reference) -> None
Arguments
scenario_id 
The ID of the scenario to move.
new_parent 
A Reference to either a folder in the same app as the scenario, or the app ID in which the scenario resides if moving to the app root.
Return value

This function may raise the following errors:

  scenario.InsightServerError

If there is an issue performing this request or communicating with the Insight server.

Example
To move a scenario to a different folder:
>>> with ins.InsightRestClient(insight_url='http://localhost:8080/') as client:
...     DESTINATION_ID='f3336733-5cf9-49fc-84f0-3e7ee80df98e'
...     client.move_scenario('570b9100-46e3-4643-baee-2e24aa538f25',
...                          new_parent=Reference.to_folder(DESTINATION_ID))			
Related topics

© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.