Generate Connector
POST
/api/v1/codegen/connector
const url = 'https://example.com/api/v1/codegen/connector';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","resource_id":"example","execution_mode":"batch","schedule_cron":"example","table_configs":[{"target_name":"example","pii_suppressed":false,"source_dataset":"example"}],"connection":{"name":"example","type":"example","config":{}},"connection_ref":"example","compute_type":"job_cluster","cluster_config":{},"encode_artifacts":false}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/codegen/connector \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "resource_id": "example", "execution_mode": "batch", "schedule_cron": "example", "table_configs": [ { "target_name": "example", "pii_suppressed": false, "source_dataset": "example" } ], "connection": { "name": "example", "type": "example", "config": {} }, "connection_ref": "example", "compute_type": "job_cluster", "cluster_config": {}, "encode_artifacts": false }'Generate all artifacts for a Connector.
Args: connector_input: Connector configuration x_environment_id: Environment ID from header (optional)
Returns: - Connector notebook with watermark column support - Job YAML - Connector configuration - Merged bundle
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
ConnectorFlowInput
Input model for Connector code generation.
object
name
required
Name
string
execution_mode
required
Execution Mode
string
table_configs
required
Table Configs
Array<object>
TableConfigTable configuration for connectors.
object
target_name
required
Target Name
string
pii_suppressed
Pii Suppressed
boolean
source_dataset
required
Source Dataset
string
connection
required
connection_ref
required
Connection Ref
string
encode_artifacts
Encode Artifacts
boolean
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
CodegenResponse
Standard response for all codegen endpoints.
object
status
Status
string
artifacts
required
errors
Errors
Array<string>
Example
{ "status": "success", "artifacts": [ { "encode_artifacts": false } ]}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}