Issue with streams not appearing on UI after creating connection using Airbyte API

Summary

The user is facing an issue where streams are not appearing on the UI after creating a connection using the Airbyte API. The provided code snippet shows the creation of a connection with streams, but the streams are not visible on the UI.


Question

Hi team,

please i am trying to use the airbyte API to create a connection. The connection is actually create but the streams don’t appear on the UI
please can someone help please ?
what is the correct way to declare the streams ?

snippet of my code :

    "name": "My Connection : Git Source -> Postgres Destination",
    "sourceId": "'$SOURCE_ID'",
    "destinationId": "'$DESTINATION_ID'",
    "connectionConfiguration":{
        "syncCatalog": {
            "streams": [
                {
                    "stream": {
                        "name": "commits",
                        "jsonSchema": {}
                    }
                },
                {
                    "stream": {
                        "name": "branches",
                        "jsonSchema": {}
                    }
                }
            ]
        }
    },
    "schedule": {
        "scheduleType": "cron",
        "cronExpression": "0 /5 * * * ?"
    },
    "dataResidency": "auto",
    "namespaceDefinition": "destination",
    "namespaceFormat": null,
    "nonBreakingSchemaUpdatesBehavior": "ignore",
    "status": "active"
}')

echo "Connection creation response: $CONNECTION_RESPONSE"
CONNECTION_ID=$(echo $CONNECTION_RESPONSE | jq -r '.connectionId')
if [ "$CONNECTION_ID" == "null" ]; then
  echo "Connection creation failed."
  exit 1
else
  echo "Connection creation succeeded. Connection ID: $CONNECTION_ID"
fi```

<br>

---

This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. [Click here](https://airbytehq.slack.com/archives/C027KKE4BCZ/p1711535187783119) if you want to access the original thread.

[Join the conversation on Slack](https://slack.airbyte.com)

<sub>
["airbyte-api", "connection", "streams", "ui", "curl", "jsonschema"]
</sub>