Replace a script
replace_scriptReplace every block of a project's script. Whole-script replace: blocks you leave out are deleted, and block ids change. The project must be inactive. To change one block on a live script, use update_block. Read the subo://guide/authoring resource before writing blocks: block type names, section names and the piping rules are not guessable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blocks | Yes | ||
| project_id | Yes | Project id, from list_projects or create_project. |