Geert
08/25/2025, 9:56 PMkapa.ai
08/25/2025, 9:57 PM/v1/connections/update endpoint. In your API request, you should provide the connectionId and a syncCatalog object that specifies which streams are enabled (selected). Here’s a general outline of the process: 1. Retrieve the current connection configuration to get the existing syncCatalog (list of streams and their settings). 2. Modify the syncCatalog: For each stream you want to enable, set "selected": true in the stream's config object. 3. Send a POST request to /v1/connections/update with the updated configuration. Example payload: json { "connectionId": "your-connection-id", "syncCatalog": { "streams": [ { "stream": { "name": "your_stream_name", "namespace": "your_namespace", "jsonSchema": { /* schema definition */ }, "supportedSyncModes": ["full_refresh", "incremental"] }, "config": { "syncMode": "full_refresh", "destinationSyncMode": "append", "selected": true } } // Add more streams as needed ] } // ...other connection settings as needed } Make sure to include all required fields for each stream and the connection. Important notes: - If you omit streams from the syncCatalog, they may be disabled or removed from the connection. - The selected field controls whether a stream is enabled for syncing. - The API expects the full syncCatalog object, not just the changes. For more details and an example of updating a connection (including enabling streams), see the discussion and script example in this forum post: [Unable to update connection syncCatalog using the Airbyte Configuration API](https://discuss.airbyte.io/t/1027)[^1]. [^1]: The knowledge source shows a user updating the syncCatalog via the API, and the importance of the selected field in the stream config. If you need to add new streams (for example, after a schema refresh), you should first refresh the schema in the UI or via the API, then update the connection as described above. If you encounter issues with the format, ensure your payload matches the expected structure, as incorrect formatting can result in the streams array being empty in the response. --- References: - [Unable to update connection syncCatalog using the Airbyte Configuration API](https://discuss.airbyte.io/t/1027) - [Airbyte API reference: Update a connection](https://airbyte-public-api-docs.s3.us-east-2.amazonaws.com/rapidoc-api-docs.html#post-/v1/connections/update)kapa.ai
08/25/2025, 9:57 PMkapa.ai
08/25/2025, 9:57 PMGeert
08/25/2025, 9:57 PMkapa.ai
08/25/2025, 9:57 PMkapa.ai
08/25/2025, 9:58 PMpython import requests url = "http://localhost:8000/api/v1/connections/update" connection_details = { "connectionId": "your-connection-id", "name": "Some connection I want to update", "namespaceDefinition": "destination", "namespaceFormat": "${SOURCE_NAMESPACE}", "syncCatalog": { "streams": [ { "stream": { "name": "Some table I want to sync", "jsonSchema": { "type": "object", "properties": { "field1": {"type": "number"}, "field2": {"type": "string"} } }, "supportedSyncModes": ["full_refresh"], "namespace": "my table" }, "config": { "syncMode": "full_refresh", "destinationSyncMode": "append", "selected": True } } ] }, "schedule": { "units": 24, "timeUnit": "hours" }, "status": "inactive" } response = requests.post(url, json=connection_details) print(response.status_code) print(response.json()) Important: As reported in the [forum post](https://discuss.airbyte.io/t/1027), this approach may result in the streams array being empty in the response, indicating that the API may not update the enabled streams as expected. The knowledge sources do not provide a confirmed working example, so you may need to verify this with your Airbyte instance or consult the latest Airbyte documentation for updates. If you encounter issues, you may need to use the Airbyte UI to enable streams until the API behavior is improved or better documented.Geert
08/26/2025, 5:51 AMkapa.ai
08/26/2025, 5:51 AMkapa.ai
08/26/2025, 5:51 AM/api/v1/connections/update endpoint, just as in the example above. The process and payload are the same for self-hosted as for other deployments. However, based on the available knowledge sources, there are some important caveats: - Users have reported that while updating connection properties like the name works, updating the syncCatalog to enable streams does not always work as expected—the streams array may come back empty in the response. This suggests that enabling streams via the API in self-hosted Airbyte may not be fully supported or may require a very specific payload format that is not well documented at this time. - There is no official documentation or confirmed working example in the knowledge sources for successfully enabling streams via the API on self-hosted Airbyte. The only available example is from a forum post where the attempt did not succeed as intended, and the user was unable to enable streams programmatically via the API. The Airbyte team has not provided a resolution in that thread, and the API documentation does not clarify the required format for the jsonSchema or syncCatalog fields for this use case. Here is the Python example from the forum post, which you can try with your self-hosted Airbyte instance: python import requests url = "http://localhost:8000/api/v1/connections/update" connection_details = { "connectionId": "your-connection-id", "name": "Some connection I want to update", "namespaceDefinition": "destination", "namespaceFormat": "${SOURCE_NAMESPACE}", "syncCatalog": { "streams": [ { "stream": { "name": "Some table I want to sync", "jsonSchema": { "type": "object", "properties": { "field1": {"type": "number"}, "field2": {"type": "string"} } }, "supportedSyncModes": ["full_refresh"], "namespace": "my table" }, "config": { "syncMode": "full_refresh", "destinationSyncMode": "append", "selected": True } } ] }, "schedule": { "units": 24, "timeUnit": "hours" }, "status": "inactive" } response = requests.post(url, json=connection_details) print(response.status_code) print(response.json()) Summary: You can try this approach on your self-hosted Airbyte, but be aware that, according to the knowledge sources, it may not work as expected for enabling streams. If you encounter issues, you may need to use the Airbyte UI for this operation until the API or documentation is improved for self-hosted deployments. [See forum discussion for details](https://discuss.airbyte.io/t/1027).