POST /v1/dataContracts
Create a Data Contract
Create a new data contract for a data asset
POST
POST /v1/dataContracts
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 Data Contract
Create a new data contract and attach it to a data asset. Only thename and entity reference are required — all other sections (schema, semantics, quality, SLA, security, terms of use) are optional.
Body Parameters
Name of the data contract. Must be unique.
Reference to the data asset this contract applies to.
Human-readable display name.
Description in Markdown format.
Contract status:
Draft, Active, or Deprecated.Expected column definitions. Each item follows the Column schema.
Semantics rules defining business expectations.
References to test cases that must pass.
Service level agreement expectations.
Terms of use in Markdown format. Describes allowed/disallowed use cases and compliance requirements.
Security and access policy expectations.
Owner references (users or teams).
Reviewer user references.
ISO 8601 date from which this contract is effective.
ISO 8601 date until which this contract is effective.
POST /v1/dataContracts
Upsert (Create or Update)
UsePUT /v1/dataContracts with the same body to create a new contract or update an existing one.
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 data contracts |
409 | CONFLICT | A contract with the same name already exists |