> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcollate.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Breaking Changes: API & Schema

> Removed endpoints, enum values, and schema files, and changed request limits and defaults in Collate 2.1.

# API & Schema

This page compares Collate 2.1 with Collate 2.0.8. The shared JavaScript Object Notation (JSON) Schema specification adds 217 files, modifies 909, and removes six. Collate's own specification adds 38 files, modifies 141, and removes none. Nearly all modified files change only one line, the schema dialect. For more information, see [Schema Files Declare a Newer JSON Schema Version](#schema-files-declare-a-newer-json-schema-version).

On the Representational State Transfer (REST) side, the whole `/v1/feed` namespace (13 endpoints) is removed. Many new endpoint groups are added.

## Removed Endpoints

The following endpoints are removed in Collate 2.1.

### The Feed API Is Removed

> [!NOTE]
>
> **Breaking.** Affects API clients, software development kits (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.

| Removed in Collate 2.1 |
| - |
| `GET /v1/feed` |
| `POST /v1/feed` |
| `GET /v1/feed/count` |
| `GET /v1/feed/{id}` |
| `PATCH /v1/feed/{id}` |
| `DELETE /v1/feed/{threadId}` |
| `GET /v1/feed/{id}/posts` |
| `POST /v1/feed/{id}/posts` |
| `PATCH /v1/feed/{threadId}/posts/{postId}` |
| `DELETE /v1/feed/{threadId}/posts/{postId}` |
| `GET /v1/feed/tasks/{id}` |
| `PUT /v1/feed/tasks/{id}/resolve` |
| `PUT /v1/feed/tasks/{id}/close` |

Use the following replacements.

| If you used | Use instead |
| - | - |
| Conversation threads, replies, and reactions under `/v1/feed` | `/v1/conversations` (create, read, patch, delete, replies, and reactions) |
| Announcements under `/v1/feed` | `/v1/announcements` |
| Activity and mention feeds under `/v1/feed` | `/v1/activity` (`my-feed`, `following`, `mentions`, `user/{userId}`, and `entity/...`) |
| Feed tasks | `POST /v1/tasks`, `GET /v1/tasks/{id}`, `POST /v1/tasks/{id}/resolve`, and `POST /v1/tasks/{id}/close` |

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`.

> [!WARNING]
>
> Tasks that were created through the Feed API while you were on Collate 2.0.x are not migrated. They stay in the archived thread table. Resolve or close them before you upgrade.

For more information, see [Collaboration](https://docs.getcollate.io/ai-2-0/release-2.1/breaking-changes/collaboration.md).

## Removed Schema Files

> [!NOTE]
>
> **Breaking.** Affects code generated from the specification and anything that loads these files by path.

The following table lists the removed files.

| Removed file | What happens to it |
| - | - |
| `api/feed/closeTask.json` and `api/feed/resolveTask.json` | Removed with the Feed API. Use the task schemas under `/v1/tasks`. |
| `entity/services/connections/database/deltaLakeConnection.json`, `deltalake/metastoreConfig.json`, and `deltalake/storageConfig.json` | The Delta Lake connector is removed. For more information, see [Ingestion & Connectors](https://docs.getcollate.io/ai-2-0/release-2.1/breaking-changes/ingestion-and-connectors.md). |
| `type/workflowTriggerFields.json` | No longer part of the public specification. Read the list from the new `GET /v1/types/fields/workflowTriggerFields` endpoint. |

The `createTaskDetails` definition is also removed from `api/feed/createThread.json`.

## Removed Enum Values

> [!NOTE]
>
> **Breaking.** Affects clients that send, store, or switch on these values.

The following table lists the removed values.

| Schema | Enum | Removed values |
| - | - | - |
| `entity/feed/thread.json` | `threadType` | `Task` |
| `type/changeEventType.json` | event types | `taskCreated` `taskUpdated` `taskResolved` `taskClosed` `suggestionCreated` `suggestionUpdated` `suggestionAccepted` `suggestionRejected` `suggestionDeleted` |
| `entity/services/databaseService.json` | `databaseServiceType` | `DeltaLake` |

Task activity now uses the ordinary events. A task being created or updated is delivered as `entityCreated` or `entityUpdated` with `entityType` set to `task`. Readers that tolerate unknown values skip historic change events that carry the removed values.

> [!NOTE]
>
> Update event subscriptions, alerts, and webhook consumers that filter on the removed task event types. 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.

## Removed AI Chart Field

> [!NOTE]
>
> **Breaking.** Affects clients that read `cachedData` from an AI chart.

The `cachedData` field of an AI chart is no longer returned on reads, and the server does not store it. A chart now stores its query results as refreshes, so the allowed `fields` values for chart reads change from `cachedData` to `refresh` and `result`. Request `fields=refresh,result` to read the latest refresh and its rows.

When you pin a chart, send the rows in the new `result` field. Only the pin (create) request still accepts `cachedData`, and only as a deprecated fallback when `result` is missing. Other writes ignore it. The fallback is scheduled for removal in Collate 2.2.

## Changed Request Contracts

These requests change shape or validation in Collate 2.1.

### Query Size and Timeout Limits

> [!NOTE]
>
> **Breaking.** Affects clients that call the query API for Resource Description Framework (RDF) data.

The query API accepts queries in SPARQL Protocol and RDF Query Language (SPARQL). In `api/rdf/sparqlQuery.json`, the limits change as follows:

```diff theme={null}
- "timeout": { "minimum": 0, "maximum": 300000 }
+ "timeout": { "minimum": 1, "maximum": 30000 }
+ "query":   { "maxLength": 100000 }
```

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

> [!NOTE]
>
> **Breaking.** Affects clients that post replies.

The `message` of a reply (`api/feed/createPost.json`) must now contain at least one non-blank character. Collate rejects an empty or whitespace-only reply.

### Lineage Request and Response Changes

> [!NOTE]
>
> **Breaking.** Several lineage endpoints now check permissions, refuse some inputs, and return new response details.

For more information, see [Lineage](https://docs.getcollate.io/ai-2-0/release-2.1/breaking-changes/lineage.md).

### Dynamic Agent Provider Is Ignored

> [!NOTE]
>
> **Behavioral.** Affects clients that create agents through the API and send `provider`.

In `api/ai/createDynamicAgent.json`, `provider` is no longer required and the server ignores it. Collate creates every agent sent through the API as a `user` agent. Only built-in seed data creates `system` agents. Remove `provider` from your create requests.

## Authorization Changes on Existing Endpoints

> [!NOTE]
>
> **Breaking.** Affects non-admin users and integrations that read data they do not own.

Collate 2.1 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 a `403 Forbidden` error. Where the endpoint returns a list, the entries the caller cannot view are left out instead. That list filtering is a behavioral change, because the request still succeeds. 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
  * A user's `owns` and `follows` lists
  * The schemas of a database
  * The tables of a schema
  * The pipelines of a service
  * The team hierarchy
* Activity feeds only include events about entities the caller can view. Admins see everything. The activity endpoints for one entity return a `403 Forbidden` error 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 5 pages or 1,000 rows, so it can return fewer rows than `limit`. The total still counts every row. When a Fernet key (an encryption key that you set for the server) 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.

Lineage endpoints have their own permission changes. For more information, see [Lineage](https://docs.getcollate.io/ai-2-0/release-2.1/breaking-changes/lineage.md).

### 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 comma-separated values (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 metadata 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 Structured Query Language (SQL) a user ran is only listed and read by that user, an admin, or a bot. Other users get a `403 Forbidden` error 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 Collate 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.
* A patch cannot copy or move a value out of the connection. A user who cannot read stored secrets must enter them again if they point the connection somewhere else (a `400 Bad Request` error).

> [!NOTE]
>
> 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.

## Schema Files Declare a Newer JSON Schema Version

> [!NOTE]
>
> **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:

```diff theme={null}
- "$schema": "http://json-schema.org/draft-07/schema#",
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
```

This is why 909 shared files and 141 Collate files show as modified. The request and response format does not change. Only 24 shared files still declare draft-07. Every new Collate schema file declares 2020-12.

> [!NOTE]
>
> 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 Collate 2.1 validates input and handles fields.

### Fields Now Treated as Secrets

> [!NOTE]
>
> **Behavioral.** Affects clients that read these values back.

These fields are now marked `format: password`, so Collate handles them as secret values:

| Schema | Fields |
| - | - |
| `email/smtpSettings.json` | `password` |
| `configuration/ldapConfiguration.json` | `dnAdminPassword` |
| `configuration/ldapTrustStoreConfig/customTrustManagerConfig.json` | `trustStoreFilePassword` |
| `entity/services/connections/pipeline/fivetranConnection.json` | `apiKey` |
| `entity/services/connections/llm/customLLMConnection.json` | every value in `headers` |
| Kafka and Redpanda connections | every value in `consumerConfig` and `schemaRegistryConfig` |
| `security/credentials/awsCredentials.json` | `awsSessionToken` |
| `metadataIngestion/dbtconfig/dbtHttpConfig.json` | every value in `dbtHttpHeaders` |

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

> [!NOTE]
>
> **Breaking.** Affects Open Data Contract Standard (ODCS) 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 and quality rules. The same applies to 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.

### Page and Lifecycle Defaults

> [!NOTE]
>
> **Behavioral.** Affects creation requests that leave `entityStatus` out.

The following table compares the defaults.

| Entity | Collate 2.0.8 | Collate 2.1 |
| - | - | - |
| Page (`createPage`) | `Approved` | `Draft` |
| Data contract and test case | Schema default of `Draft` or `Approved` | No schema default. The server assigns the initial stage of the entity type. |
| `type/status.json` | Schema default `Unprocessed` | No schema default |
| Metric | No built-in metric workflow | A metric with reviewers starts as `Draft` and goes through the new built-in `MetricApprovalWorkflow`, which runs when a metric is created or updated. A metric without reviewers starts as `Approved`. |

> [!NOTE]
>
> If you rely on new pages being published at once, send `entityStatus` explicitly.

### Test Definition Dimension Is Now a Free Name

> [!NOTE]
>
> **Breaking.** 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](https://docs.getcollate.io/ai-2-0/release-2.1/breaking-changes/data-quality.md).

### Connector Default Filter Patterns

> [!NOTE]
>
> **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 the following databases and schemas:
  * `msdb`
  * `model`
  * `tempdb`
  * The `db_*` roles
  * `guest`
  * `information_schema`
  * `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`, and `oracle+cx_oracle` is still accepted. The Hugging Face `baseURL` default moves to `https://router.huggingface.co/v1`.

> [!NOTE]
>
> If you deliberately ingest a system schema, set the filter pattern explicitly.

## Schema Reference Relocations

> [!NOTE]
>
> **Behavioral.** Affects code generated from the specification and JSON Schema validators that follow `$ref` pointers.

The following table lists the moved definitions.

| Moved | From | To |
| - | - | - |
| Glossary term concept mapping | `entity/data/glossaryTerm.json#/definitions/conceptMapping` | `type/conceptMapping.json` |
| Secure File Transfer Protocol (SFTP) authentication options | Inline definitions in `sftpConnection.json` | `sftp/basicAuth.json` and `sftp/keyAuth.json` |
| Glossary term relation type | Plain string with a default of `relatedTo` | `type/termRelation.json#/definitions/relationType`. Relations also gain an ID, provenance, and status. |

The request and response format of these objects is unchanged except where a new field is listed. Update hand-written `$ref` paths.

## Deprecations to Plan For

> [!NOTE]
>
> **Deprecated.** Most of these settings still work. `authorizerConfiguration.enableSecureSocketConnection` has no effect.

The following table lists the deprecated items and their replacements.

| Item | Replacement |
| - | - |
| `authenticationConfiguration.jwtPrincipalClaims` | `emailClaim` |
| `authenticationConfiguration.jwtPrincipalClaimsMapping` | `emailClaim` and `displayNameClaim` |
| `authorizerConfiguration.adminPrincipals` | `adminEmails` |
| `authorizerConfiguration.principalDomain` | `botDomain` for bots and `allowedEmailDomains` for user restrictions |
| `authorizerConfiguration.allowedDomains` and `enforcePrincipalDomain` | `allowedEmailDomains` |
| `authorizerConfiguration.enableSecureSocketConnection` | Has no effect. Socket connections are always authenticated. |
| `cachedData` on the AI chart create request | `result` |

The settings `jwtPrincipalClaims`, `adminPrincipals`, `principalDomain`, and `enforcePrincipalDomain` are also no longer required fields. For more information, see [Platform & Security](https://docs.getcollate.io/ai-2-0/release-2.1/breaking-changes/platform-and-security.md).

## Added Enum Values

> [!NOTE]
>
> **Additive.** Clients that run an exhaustive `switch` or pattern match on these enums need new branches.

The following table lists the added values.

| Schema | Enum | Added values |
| - | - | - |
| `type/changeEventType.json` | event types | `ontologyImported`, `ontologyRelationshipTypeUpdated`, and `ontologyChangeSetApplied` |
| `type/entityRelationship.json` | `relationshipType` | `mappedTo` and `derivedFrom` |
| `settings/settings.json` | `settingType` | `glossarySettings`, `sparqlQuerySettings`, and `startupChecksums` |
| `entity/policies/accessControl/resourceDescriptor.json` | `operation` | `ExecuteSparqlQuery` |
| `jobs/backgroundJob.json` | `jobType` | `ONTOLOGY_BULK` `ONTOLOGY_PACK_INSTALL` `CONTEXT_MEMORY_EXTRACTION` `MEMORY_GLOSSARY_DERIVATION` Five `ADMIN_OPS_*` types |
| `governance/workflows/workflowInstance.json` | `workflowStatus` | `CANCELLED` |
| `governance/workflows/elements/nodeSubType.json` | node subtypes | `collectMetadataTask` |
| `governance/workflows/.../userApprovalTask.json` | `emptyAssigneeStrategy` | `wait` |
| `entity/tasks/task.json` | `taskType` | `MemoryConflictReview` and `MetadataCompletion` |
| `governance/intakeForm.json` | `targetEntityType` | `glossary` and `metric` |
| `entity/services/ingestionPipelines/ingestionPipeline.json` | `pipelineType` | `reverseMetadata` |
| `entity/data/table.json` | `tableType` | `DeltaLake` |
| `entity/data/dashboardDataModel.json` | `dataModelType` | `RillModel` and `RillMetricsView` |
| `entity/services/databaseService.json` | `databaseServiceType` | `Clickzetta` `Databend` `Data360` `Neo4j` |
| `entity/services/dashboardService.json` | `dashboardServiceType` | `Rill` |
| `entity/services/messagingService.json` | `messagingServiceType` | `Nats` |
| `entity/services/pipelineService.json` | `pipelineServiceType` | `Data360Pipeline` and `TableauPipeline` |
| `dataInsight/custom/dataAssetType.json` | asset types | `apiEndpoint` and `testCase` |
| `entity/context/contextMemory.json` | `memoryType`, `sourceType`, and `shareVisibility` | `Learning`, `ConversationExtraction`, and `Public` |
| `entity/learning/learningResource.json` | `resourceType` | `Link` and `PDF` |
| `configuration/elasticSearchConfiguration.json` | `searchIndexMappingLanguage` | `KO` |
| `system/testLoginResult.json` | `status` | `pending` |
| `entity/datacontract/odcs/odcsDataContract.json` | `odcsApiVersion` | `v3.2.0` |
| `entity/queryRunner/queryRunnerConfig.json` | `serviceType` | `Clickhouse`, `MariaDB`, and `MicrosoftFabric` |
| `entity/ai/aiChart.json` | `queryType` | `file` |

## Notable New Endpoint Groups

> [!NOTE]
>
> **Additive.** These do not break anything.

The following table lists the new endpoint groups.

| Namespace | Purpose |
| - | - |
| `/v1/conversations/**` `/v1/announcements/**` `/v1/activity/**` `/v1/tasks/**` | Replace `/v1/feed`. For more information, see [The Feed API Is Removed](#the-feed-api-is-removed). |
| `/v1/ontologies/**` `/v1/ontologyConcepts/**` `/v1/ontologyProperties/**` `/v1/ontologyAxioms/**` `/v1/ontologyChangeSets/**` `/v1/ontologyEditLocks/**` `/v1/relationshipTypes/**` | Ontology authoring and relationship types |
| `/v1/rdf/**` | Additional RDF and SPARQL operations. They include rules, validation, and insights. They also include saved queries and ontology extensions. |
| `/v1/metricGroups/**` and `PUT /v1/metrics/{name}/assets/add\|remove` | Metric groups and metric-to-asset links |
| `/v1/dataQuality/dimensions/**` and `PUT /v1/dataQuality/testCases/testCaseIncidentStatus/bulk` | Data quality dimensions and bulk incident status |
| `GET /v1/lineage/scene` | Lineage scene. For more information, see [Lineage](https://docs.getcollate.io/ai-2-0/release-2.1/breaking-changes/lineage.md). |
| `POST /v1/services/ingestionPipelines/run` | Run an ingestion pipeline on demand |
| `POST /v1/system/settings/source/{configType}/adopt` and `POST /v1/system/security/test-login/*` | Settings source adoption and test sign-in |
| `GET /v1/types/fields/workflowTriggerFields` | Fields that a workflow trigger can watch |
| `/v1/contextCenter/memories/**` | Context Center memory outcomes and extraction approval |
| `GET /v1/hybrid/nlq/extract` and `POST /v1/hybrid/nlq/canonicalize` | Natural language search diagnostics. For more information, see [Discovery & Search](https://docs.getcollate.io/ai-2-0/release-2.1/breaking-changes/discovery-and-search.md). |
| `/v1/governance/automations/**`, `/v1/governance/metadataStandards/**`, and `/v1/governance/completeness/**` | Governance automations, metadata standards, and metadata completeness runs |
| `/v1/billing/creditAlert/**` | Credit alerts. For more information, see [Collate AI & Credits](https://docs.getcollate.io/ai-2-0/release-2.1/breaking-changes/collate-ai-and-credits.md). |
| `/v1/landingPage/**` | Landing page content such as items that need your attention |
| `/v1/notifications/weeklyEmails/**` | Weekly email digests |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.