CreateSchemaBody

Request body for creating a Schema.

Definition

TypeScript
interface CreateSchemaBody {
  workspaceId: string;
  name: string;
  slug: string;
  description?: string | undefined;
  definition?: Record<string, unknown> | undefined;
}

Fields

FieldTypeNotes
workspaceIdstringrequired — Workspace that will own the new schema.
namestringrequired — Schema name
slugstringrequired — URL-friendly slug
descriptionstring | undefinedoptional — Schema description
definitionRecord<string, unknown> | undefinedoptional — Schema definition (JSON Schema)