{"templateId":"openapi_docs","sharedDataIds":{"openAPIDocsStore":"oas-openapi/content-intelligence.yaml","sidebar":"sidebar-sidebars.yaml"},"props":{"definitionId":"openapi/content-intelligence.yaml","dynamicMarkdocComponents":[],"baseSlug":"/openapi/content-intelligence","seo":{"title":"Document Schemas","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]},"description":"Schemas define the metadata field structure for a Document Type — specifying which fields\nshould be present, their data types, display labels, and validation rules (required, allowed\nvalues, min/max constraints). The platform stores metadata as schemaless name/value pairs\nat the document layer, but schemas allow you to enforce structure when needed.\n\n**Schema types:**\n\n| SchemaType | Description |\n|---|---|\n| `ROOT` | Top-level schema attached directly to a Document Kind |\n| `SUB` | Nested schema for structured sub-objects within a document |\n| `TRAIT` | Schema associated with a behavioral trait (e.g., SUMMARY, TIMELINE) |\n\n**Available field types:**\n\n| Field Type | Description |\n|---|---|\n| `string` | Plain text value |\n| `integer` | Whole number |\n| `number` | Floating point number |\n| `bool` | Boolean true/false |\n| `date` | ISO 8601 date or datetime |\n| `array` | List of values — element type can be `string`, `integer`, `number`, `bool`, or `date` |\n| `object` | Nested JSON object (references a `SUB` schema) |\n| `link` | Edge to another document; has a `cardinality` (`ONE_TO_ONE`, `ONE_TO_MANY`, `MANY_TO_ONE`, `MANY_TO_MANY`) |\n| `ref` | Read-only reference to a field on a linked document |\n| `computed` | Derived field calculated from other field values |\n\n**Schema operations:**\n- `create-schema` — define a new schema and attach it to a kind\n- `update-schema` — revise field definitions; changes apply to subsequent document writes\n- `retrieve-schema / list-schema` — inspect field definitions for a given kind\n- `delete-schema` — remove a schema, returning the kind to free-form metadata mode\n"},"itemId":"document-schemas","disableAutoScroll":true,"metadata":{"subType":"openapi-operation"},"compilationErrors":[],"markdown":{"partials":{},"variables":{"rbac":{"teams":["anonymous"]},"user":{},"remoteAddr":{"hostname":"api.tenovos.com","port":4000,"ipAddress":"216.73.217.51"},"lang":"default_locale","env":{"PUBLIC_REDOCLY_BRANCH_NAME":"main"}}},"pagePropGetterError":{"message":"","name":""}},"slug":"/openapi/content-intelligence/document-schemas","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}