Actions28
- Chat Actions
- Chat History Actions
- Memory Actions
- Record Actions
- Record Schema Actions
- Claim Actions
Record Schema → Create/Update Schema
AI-generatedSummary
Create or update a record schema
Inputs
- recordSchemaTypeName (required) — Unique identifier for the record type (e.g., "account").
- recordSchemaFieldsJson (required) — JSON object defining fields; keys are field names, values describe type and constraints.
- recordSchemaDisplayName — Human‑readable name for the schema.
- recordSchemaDescription — Description of what the record type represents.
Output shape
record schema object
Returns the created or updated schema object; includes system fields like id; throws on validation errors.
Examples
Example 1: Create a new account schema
Type Name = account; Fields = {"name":{"type":"text","required":true}}; Display Name = Account; Description = Customer account
Example 2: Update an existing schema
Type Name = account; Fields = {"name":{"type":"text","required":true},"email":{"type":"email"}}; Display Name = Account; Description = Customer account information
