Skip to main content

API & Schema Contracts

Compared with 2.0, the 2.1 JSON Schema specification adds 217 files, modifies 909, and removes six. Nearly all of the modified files change only one line, the schema dialect. For more information, see Schema Files Declare a Newer JSON Schema Version. On the REST side, the whole /v1/feed namespace (13 endpoints) is removed, and a large number of new endpoint groups are added.

Removed Endpoints

The following endpoints are removed in 2.1.

The Feed API Is Removed

Breaking. Affects API clients, SDKs, and bots. It also affects any script that creates, reads, or resolves feed threads or feed tasks.
The entire /v1/feed namespace is removed. The following table lists the removed endpoints. Use the following replacements. Task identifiers change too. Feed tasks used numeric IDs. Tasks now use Universally Unique Identifiers (UUIDs). The migration keeps each old thread’s UUID as the new task’s UUID. In the Python SDK, replace resolve_feed_task and close_feed_task with resolve_task and close_task.
Tasks that were created through the feed task API while you were on 2.0.x are not migrated. They stay in the archived thread table. Resolve or close them before you upgrade.

Removed Schema Files

Breaking. Affects code generated from the specification and anything that loads these files by path.
The following table lists the removed files. The createTaskDetails definition is also removed from api/feed/createThread.json.

Removed Enum Values

Breaking. Affects clients that send, store, or switch on these values.
The following table lists the removed values. Task activity now uses the ordinary events. A task being created or updated is delivered as entityCreated or entityUpdated with entityType set to task. Historic change events that carry the removed values are skipped by readers that tolerate them.
Update event subscriptions, alerts, and webhook consumers that filter on taskCreated, taskUpdated, taskResolved, or taskClosed. Filter on entityCreated and entityUpdated for the task entity instead. Delta Lake services become Custom Database services during the upgrade, so check your service filters.

Changed Request Contracts

These requests change shape or validation in 2.1.

SPARQL Query Size and Timeout Limits

Breaking. Affects clients that call the SPARQL Protocol and RDF Query Language (SPARQL) query API, which queries Resource Description Framework (RDF) data.
In api/rdf/sparqlQuery.json:
A timeout above 30,000 ms (30 seconds), a timeout of 0, or a query longer than 100,000 characters is now invalid. Lower the timeout or split the query.

Replies Must Have Text

Behavioral. Affects clients that post replies.
The message of a reply (api/feed/createPost.json) must now contain at least one non-blank character. An empty or whitespace-only reply is rejected.

Lineage Request and Response Changes

Behavioral. Several lineage endpoints now check permissions, refuse some inputs, and return new response details.
For more information, see Lineage.

Authorization Changes on Existing Endpoints

Behavioral. Affects non-admin users and integrations that read data they do not own.
The 2.1 release adds permission checks to endpoints that used to answer without the per-entity check that the entity itself gets. A caller who lacks the permission now gets 403 Forbidden. Where the endpoint returns a list, the entries the caller cannot view are left out instead. The following sections group the changes.

Reads and Lists

The following changes apply to reads and to endpoints that return lists.
  • Sub-resource reads need a view permission on the parent entity. Table system profiles need ViewDataProfile on the table. A table’s entity relationship graph needs ViewBasic on the table. Pipeline run statuses need ViewBasic on the pipeline, and ingestion pipeline statuses need ViewAll on the ingestion pipeline. Key performance indicator (KPI) results need ViewBasic on the KPI. Reading an intake form needs ViewBasic on the form.
  • Validating a contract definition (POST /v1/dataContracts/validate, /validate/yaml, and /odcs/validate/yaml) needs ViewBasic on the entity the contract targets.
  • The assets of a data product need ViewBasic on the data product.
  • Reference lists on an entity only include entities the caller can view with ViewBasic. This covers the following lists.
    • A team’s owns, children, and parents lists are filtered.
    • A user’s owns and follows lists are filtered.
    • The schemas of a database are filtered.
    • The tables of a schema are filtered.
    • The pipelines of a service are filtered.
    • The team hierarchy is filtered.
  • Activity feeds only include events about entities the caller can view (admins see everything). The activity endpoints for one entity return 403 when the caller cannot view it.
  • When a caller’s policies depend on conditions that differ by row, such as owner or tag, a list endpoint drops the rows the caller cannot read. To fill a page it reads at most five pages or 1,000 rows, so it can return fewer rows than limit. The total still counts every row. When a Fernet key is configured, paging cursors are sealed tokens that start with s., so do not parse them.
  • Following, unfollowing, and voting need ViewBasic on the entity.
  • For more information about lineage permissions, see Lineage.

Admin-Only and Restricted Endpoints

The following endpoints and actions are now limited to admins, bots, or users with a specific permission.
  • Reindex failures (GET /v1/search/reindex/failures) are admin only. System counts (/v1/system/entities/count and /v1/system/services/count) and system status (/v1/system/status) are admin or bot. Raw web analytics data (GET /v1/analytics/web/events/collect) and reading a search document by ID (GET /v1/search/get/{index}/doc/{id}) are also admin or bot.
  • Only admins can add roles or policies to a team, and adding a parent team needs EditAll on that parent. This applies to create, update, patch, and CSV import. Before, a user who could edit the team could do this.
  • Exporting users as CSV needs access to user emails, which only admins and bots have. The audit log also hides user emails from callers who are neither admins nor bots.
  • A request made while impersonating a user cannot change a user’s roles, admin flag, or tokens. It also cannot change a team’s roles and policies. This affects applications that run with allowBotImpersonation.

Workflows, Queries, and Connections

The following changes apply to automation workflows, saved queries, and service connections.
  • A reverse ingestion workflow needs EditAll on the service it writes to. A query runner workflow can only be triggered again by the user who requested it or by an admin or bot. A workflow whose request cannot be matched to its type is refused.
  • A workflow that stores the SQL a user ran is only listed and read by that user, an admin, or a bot. Other users get 403 on the ID, name, and version reads. The workflow listing and history leave those runs out. Updating, patching, or deleting another user’s run is also refused. A user can still delete their own run.
  • Creating, updating, or patching a query needs EditQueries on every entity in queryUsedIn.
  • As in 2.0, only bots receive a service’s connection details in full. Users who can edit the service receive them with secrets masked. Other users receive no connection details. What is new is that a patch cannot copy or move a value out of the connection, and a user who cannot read stored secrets must enter them again if they point the connection somewhere else (400 Bad Request).
If an integration used a normal user account to read these endpoints, move it to a bot or admin account, or grant the view permission it needs. For more information, see Platform, Configuration & Security.

Schema Files Declare a Newer JSON Schema Version

Behavioral. Affects code generated from the specification and JSON Schema validators.
Almost every schema file changes its $schema line from draft-07 to the 2020-12 dialect:
This is why 909 files show as modified. The wire format of requests and responses does not change. Only 24 files still declare draft-07.
If you validate payloads against these files with a draft-07-only validator, switch to one that supports 2020-12 or override the dialect. Regenerate client models from the new specification.

Validation and Field-Handling Changes

These changes affect how 2.1 validates input and handles fields.

Fields Now Treated as Secrets

Behavioral. Affects clients that read these values back.
These fields are now marked format: password, so OpenMetadata handles them as secret values: If you used the API to read these values and reuse them, supply the secret from your own store.

Open Data Contract Standard Payloads Changed Shape

Breaking for Open Data Contract Standard (ODCS) files. Affects imports and exports through /v1/dataContracts/odcs.
The ODCS schema in entity/datacontract/odcs/odcsDataContract.json changes several field types:
  • team is an object instead of an array.
  • customProperties is an array instead of an object. This applies to schema elements, quality rules, roles, and servers.
  • firstLevelApprovers and secondLevelApprovers on a role are strings instead of arrays.
  • value and valueExt on a service level agreement (SLA) property, and value on a custom property, no longer have a fixed string type.
  • contractCreatedTs no longer requires the date-time format.
Check ODCS files that you import or generate against the new shapes.

Knowledge Page and Lifecycle Defaults

Behavioral. Affects creation requests that leave entityStatus out.
The following table compares the defaults.
If you rely on new Knowledge Pages being published at once, send entityStatus explicitly.

Test Definition dataQualityDimension Is Now a Free Name

Behavioral. Affects clients generated from the specification.
On createTestDefinition, dataQualityDimension changed from a fixed list of values to an entity name, because dimensions are now separate entities that can be added and renamed. Test cases also gain a dataQualityDimension reference. For more information, see Data Quality & Observability.

Connector Default Filter Patterns

Behavioral. Applies to new and existing ingestion runs that do not set these patterns.
Many database connectors now declare default databaseFilterPattern and schemaFilterPattern excludes for their system databases and schemas. The following list shows examples.
  • Trino and Presto exclude system and information_schema.
  • Azure SQL and Synapse exclude msdb, model, tempdb, the db_* roles, guest, information_schema, and sys.
  • MariaDB and SingleStore exclude information_schema and performance_schema.
  • Cassandra excludes the system* keyspaces.
Other defaults change as well. The Oracle scheme default moves from oracle+cx_oracle to oracle+oracledb (oracle+cx_oracle is still accepted). The Hugging Face baseURL default moves to https://router.huggingface.co/v1.
If you deliberately ingest a system schema, set the filter pattern explicitly. For more information, see Ingestion & Connectors.

Schema Reference Relocations

Behavioral. Affects code generated from the specification and JSON Schema validators that follow $ref pointers.
The following table lists the moved definitions. The wire shape of these objects is unchanged except where a new field is listed. Update hand-written $ref paths.

Deprecations to Plan For

Deprecated. These still work in 2.1 and are no longer required.
The following table lists the deprecated items and their replacements. For more information, see Platform, Configuration & Security.

Added Enum Values

Additive. Clients that run an exhaustive switch or pattern match on these enums need new branches.
The following table lists the added values.

Notable New Endpoint Groups

Additive. These do not break anything.
The following table lists the new endpoint groups.