Update Module
update_moduleUpdate an existing Inistate module by replacing specified information, states, activities, or flows; include item IDs to keep or rename entries. Omit sections to leave them unchanged.
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. | |
| card | No | The listing card designed with the schema — how each entry shows in the module's list (mobile and web). Fields and activities by NAME. See CardDefinition in inistate://schema/configure. A card that does not pass never fails the call: the module gets the platform's default card and the response's cardStatus says why. | |
| 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. |