POST /v1/databaseSchemas
Create a Database Schema
Create a new database schema within a database
POST
POST /v1/databaseSchemas
Documentation Index
Fetch the complete documentation index at: https://openmetadata-codex-audit-docs-codebase-alignment.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Create a Database Schema
Create a new database schema within a database.Body Parameters
Name of the database schema. Must be unique within the parent database.
Fully qualified name of the parent Database.
Human-readable display name for the schema.
Description of the schema in Markdown format.
Data retention period in ISO 8601 duration format (e.g.,
P365D).Array of owner references (users or teams) to assign to the schema.
Fully qualified name of the domain to assign for governance purposes.
Array of classification tags to apply to the schema.
Custom property values defined by your organization’s metadata schema.
POST /v1/databaseSchemas
Returns
Returns the created database schema object with all specified properties and system-generated fields.Response
Unique identifier for the database schema (UUID format).
Schema name.
Fully qualified name in format
service.database.schema.Human-readable display name.
Description of the schema in Markdown format.
Reference to the parent database.
Reference to the parent database service.
Type of database service (e.g., Snowflake, BigQuery, PostgreSQL).
Data retention period in ISO 8601 duration format.
List of owners assigned to the schema.
Domain assignments for the schema.
Classification tags applied to the schema.
Custom property values defined by your organization’s metadata schema.
Version number for the entity (starts at 0.1).
Create or Update (PUT)
UsePUT /v1/databaseSchemas instead of POST to perform an upsert. If a database schema with the same fullyQualifiedName already exists, it will be updated; otherwise, a new schema is created. The request body is the same as POST.
PUT will not return a 409 conflict error if the entity already exists — it will update the existing entity instead.Bulk Create or Update (PUT)
UsePUT /v1/databaseSchemas/bulk to create or update multiple database schemas in a single request. The request body is an array of create request objects.
Error Handling
| Code | Error Type | Description |
|---|---|---|
400 | BAD_REQUEST | Invalid request body or missing required fields |
401 | UNAUTHORIZED | Invalid or missing authentication token |
403 | FORBIDDEN | User lacks permission to create database schemas |
409 | ENTITY_ALREADY_EXISTS | Schema with same name already exists in database (POST only) |