Update Module
update_moduleUpdate an existing module by replacing specified sections (states, activities, flows, information). Items matched by id for renaming; omitted sections remain unchanged. Requires module id from get_module_canvas.
Instructions
Update an existing module. A section you pass (information/states/activities/flows) replaces that section's entire list — include every existing item you want to keep (matched by id, which enables renaming; omit id to add new items). Omitted sections are left unchanged. Always call get_module_canvas first to obtain the stable module id and item ids. Full-canvas payloads (information included) are validated internally like create_module; for partial payloads, validate the merged canvas with validate_design first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Module id from get_module_canvas. Identifies which module to update. | |
| icon | No | Emoji identifier | |
| name | No | New module name (for renaming) | |
| flows | No | State transition rules: { from, to, activity } by name. Omit for record list modules. | |
| states | No | Workflow states. Omit for record list modules. | |
| activities | No | Custom activities. Omit for record list modules. | |
| description | No | ||
| information | No | Field definitions. Items matched by id on update enable renaming. | |
| workspaceId | No | Workspace ID. Omit if set via env or set_workspace; required in stateless/remote mode. |