Export ODCS
Import & Export
Import and export data contracts using the Open Data Contract Standard (ODCS) v3.1.0 format
GET
Export ODCS
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.
Import & Export
Data contracts can be imported and exported using the Open Data Contract Standard (ODCS) v3.1.0 format. Both JSON and YAML are supported, with smart merge and full replace modes for updates.Export to ODCS
Export by ID (JSON)
GET /v1/dataContracts/{id}/odcs
Export by ID (YAML)
GET /v1/dataContracts/{id}/odcs/yaml
Export by FQN (JSON)
GET /v1/dataContracts/name/{fqn}/odcs
Export by FQN (YAML)
GET /v1/dataContracts/name/{fqn}/odcs/yaml
UUID of the data contract.
Fully qualified name of the data contract.
Fields to include in the export. Defaults to
owners,reviewers,extension,schema,sla,security.Export ODCS
Import from ODCS
Create from ODCS JSON
POST /v1/dataContracts/odcs
Create from ODCS YAML
POST /v1/dataContracts/odcs/yaml
Create or Update from ODCS JSON
PUT /v1/dataContracts/odcs
Create or Update from ODCS YAML
PUT /v1/dataContracts/odcs/yaml
UUID of the entity to attach the contract to.
Type of the entity (e.g.,
table, topic, apiEndpoint).Import mode for PUT endpoints:
merge (preserves existing fields not in the import) or replace (fully overwrites the contract).Schema object name to import for multi-object ODCS contracts. If not specified, auto-selects based on entity name.
Import ODCS
Import ODCS
Import ODCS
Parse ODCS YAML
Preview an ODCS YAML contract without importing. Useful for inspecting multi-object contracts.POST /v1/dataContracts/odcs/parse/yaml
Parse YAML
Response
Validate ODCS YAML
Validate an ODCS YAML contract against a target entity without creating it.POST /v1/dataContracts/odcs/validate/yaml
UUID of the entity to validate against.
Type of the entity.
Schema object name for multi-object contracts.
Validate YAML
Response
Supported ODCS Versions
| Version | Status |
|---|---|
| v3.1.0 | Full support |
| v3.0.2 | Supported |
| v3.0.1 | Supported |
| v3.0.0 | Supported |
| v2.2.2 | Supported |
| v2.2.1 | Supported |
| v2.2.0 | Supported |
Error Handling
| Code | Error Type | Description |
|---|---|---|
400 | BAD_REQUEST | Invalid ODCS content or YAML syntax |
401 | UNAUTHORIZED | Invalid or missing authentication token |
403 | FORBIDDEN | User lacks permission |
404 | NOT_FOUND | Data contract or entity not found |