<@U04S8PLJWMT> how to update connections via API w...
# ask-ai
e
@kapa.ai how to update connections via API when the stream are from different schemas
k
Based on the knowledge sources, there is currently a limitation with the Airbyte Public API regarding updating connections with streams from different schemas (namespaces). According to a [GitHub issue](https://github.com/airbytehq/airbyte/issues/47140), the Public API does not currently support specifying different namespaces for individual streams within a connection configuration. The issue explains: - Via UI: It IS possible to configure streams from multiple schemas (e.g., "Schema_1.table_1", "Schema_2.table_1") in the same connection - Via Public API: It IS NOT possible to achieve the same configuration programmatically The problem is that when transitioning from the older "server-api" to the "public-api", support for the
namespace
field within individual stream objects was dropped. If you try to specify the same table name from different schemas, the API returns an error: "duplicate stream found in configuration." For example, this configuration would fail with the Public API:
Copy code
json "configurations": {     "streams": [         {             "name": "table_1",             "syncMode": "full_refresh_overwrite",             "namespace": "schema_1"         },         {             "name": "table_1",             "syncMode": "full_refresh_overwrite",             "namespace": "schema_2"         }     ] }
Current Workaround: The only way to handle streams from different schemas is to create separate connections for each schema, which is not ideal especially when dealing with many schemas. This is an open issue that the community has requested be addressed, as it's particularly important for CDC replication scenarios where multiple identical schemas need to be replicated through a single replication slot.