Create Module
create_moduleCreates workflow modules with states, activities, and flows, or record list modules with fields, validating design rules before saving.
Instructions
Create a new module. Supports workflow modules (states, activities, flows) and record list modules (fields only). Requires Administrator, Consultant, or Workspace Admin role. Validates internally with the same rules as validate_design and returns structured errors without creating anything — a separate validate_design call beforehand is optional. See inistate://schema/configure for field types, color palette, and design rules.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 | Yes | Module name | |
| 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. |