Replace a script
update_scriptReplace a trading script's entire source via API; running bots stay on the old version until restarted. Edits changing declared settings are refused with 409, so save them under a new name.
Instructions
Replaces a script's whole source. Bots already running it keep running the version they started with until they are restarted. An edit that changes the settings the script declares is refused with a 409; save it under a new name instead.
Requires the scripts:write scope.
Rate limit: 30 requests per minute for your key, shared across every tool in the control-plane group. Changing configuration is metered far more tightly than reading it. Creating, reconfiguring, stopping and deleting all share this budget, so make one considered change rather than a sequence of adjustments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The script's name. | |
| script | Yes | The new source, replacing what is stored. |