PATCH /v1/dataContracts/{id}
Update a Data Contract
Update a data contract using JSON Patch
PATCH
PATCH /v1/dataContracts/{id}
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.
Update a Data Contract
Update an existing data contract using a JSON Merge Patch request.Path Parameters
UUID of the data contract to update.
Body
The request body should be a JSON array of patch operations following RFC 6902.PATCH /v1/dataContracts/{id}
Common Patch Operations
| Operation | Path | Description |
|---|---|---|
replace | /description | Update description |
replace | /entityStatus | Change status (Draft, Active, Deprecated) |
add | /semantics/- | Add a semantic rule |
remove | /semantics/0 | Remove a semantic rule by index |
replace | /sla | Update SLA section |
add | /schema/- | Add a schema column |
Error Handling
| Code | Error Type | Description |
|---|---|---|
400 | BAD_REQUEST | Invalid patch operations |
401 | UNAUTHORIZED | Invalid or missing authentication token |
403 | FORBIDDEN | User lacks permission to update data contracts |
404 | NOT_FOUND | Data contract not found |