Update a scenario
update_scenarioUpdate a saved profit scenario by id, rename it, replace calculator inputs, or both, to recompute profit and fee outcomes with new assumptions.
Instructions
Update an existing Profitlee scenario by id. Pass name to rename it, inputs to replace calculator inputs and recompute outputs, or both. Requires PROFITLEE_API_TOKEN.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Saved Profitlee scenario id returned by list_scenarios or save_scenario. | |
| name | No | Optional new scenario name, up to 120 characters. | |
| inputs | No | Optional replacement calculator inputs using the same field meanings and units as calculate_profit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| response | No | Profitlee API response confirming the saved scenario create, update, or delete operation. |