Create
AI-generatedSummary
Create a new schema in DocRouter.ai by specifying its name and JSON schema definition.
Inputs
- Name (required) — The name for the new schema.
- JSON Schema (required) — The JSON schema definition using the OpenAI structured outputs format, including type, json_schema.name, json_schema.schema, and strict fields.
Output shape
a single JSON object representing the created schema.
The output includes the full schema record returned from DocRouter.ai upon successful creation. Errors during creation are returned in the JSON with an error message.
Examples
Example 1: Create a schema named "Invoice" with a valid JSON schema definition to use in later workflow steps for structured data validation.
Specify 'Invoice' as Name and provide the JSON schema definition in the JSON Schema parameter.