snehil kumar
10/26/2023, 7:29 AMkapa.ai
10/26/2023, 7:30 AMjavascript var client = new RestClient("<https://api.airbyte.com/v1/connections>"); var request = new RestRequest(); request.AddHeader("accept", "application/json"); request.AddHeader("content-type", "application/json"); request.AddHeader("Authorization", "Bearer {YourApiKey}"); request.AddParameter("application/json", "{\"sourceId\":\"YourSourceID\",\"destinationId\":\"YourDestinationID\",\"name\":\"AzPostgres-AzBlob2\",\"schedule\":{\"scheduleType\":\"manual\"},\"dataResidency\":\"auto\",\"namespaceDefinition\":\"destination\",\"namespaceFormat\":null,\"nonBreakingSchemaUpdatesBehavior\":\"ignore\",\"configurations\":{\"streams\":[{\"syncMode\":\"full_refresh_overwrite\",\"name\":\"YourTableName\"}]}}", ParameterType.RequestBody); var response = client.ExecutePost(request); In this example, a POST request is made to the /v1/connections endpoint of the Airbyte API. The request includes headers for accept, content-type, and Authorization (where {YourApiKey} should be replaced with your actual API key). The body of the request includes parameters for sourceId, destinationId, name, schedule, dataResidency, namespaceDefinition, namespaceFormat, nonBreakingSchemaUpdatesBehavior, and configurations. You can find the source and destination IDs by going to Airbyte’s portal, clicking on their respective options in the left panel, and going into the details of each one to see their IDs in the URLs. Please note that this is a general guide and you may need to adjust the code to fit your specific use case and environment. For more detailed information, you may want to refer to the [Airbyte API documentation](https://docs.airbyte.com/api/overview) (not included in the extracts). Source: [Create and Monitor a Data Pipeline Using the Airbyte API](https://airbyte.com/tutorials/create-and-monitor-a-data-pipeline-using-the-airbyte-api)