Skip to content

CreateExtractSchemaRequestBody

Schema definition for creating a reusable extraction template. Extraction schemas define the structure and validation rules for data extraction from files.

Example Usage

typescript
import { CreateExtractSchemaRequestBody } from "@meetkai/mka1/models/operations";

let value: CreateExtractSchemaRequestBody = {
  name: "<value>",
  schema: {
    "key": "<value>",
    "key1": "<value>",
    "key2": "<value>",
  },
};

Fields

FieldTypeRequiredDescription
namestring✔️Name of the extraction schema. Must be between 1 and 100 characters. Used to identify and reference the schema.
descriptionstringOptional description of the schema. Maximum 500 characters. Helps document the purpose and usage of the schema.
schemaRecord<string, any>✔️JSON Schema object defining the structure of data to extract. Specifies the fields, types, and validation rules for the extracted data.
metadataRecord<string, any>Optional metadata for the schema. Can store additional information like version, author, or custom properties.