Sources

Update Existing Source

Changed on

Update an existing source connector.

The config object contains connector-specific properties using dot notation (e.g., table.include.list, schema.include.list, database.hostname). To add tables, include the full table.include.list value with the new tables appended.

Use the GET /sources/connectors endpoint with a connector_code query parameter to retrieve the full configuration schema for a specific connector type.

For an API source, config follows GET /sources/connectors/{code}/schema, and secrets come back masked: resend every non-secret field, omit a secret (or resend its mask) to keep it, and send an explicit null to clear an optional secret. A required secret cannot be cleared.

put/sources/{source_id}

Request

Path parameters

source_idstring nullable required

Query parameters

secret_returnedboolean

Whether to include secret values in the response

waitboolean

When False, save the configuration and return immediately; desired_state is Pending Update until the change is applied to Kafka Connect. When True (default), wait for the update.

Request body

namestring required

Display name for the source connector.

connectorstring required

Connector type identifier (e.g., 'postgresql', 'mysql', 'mongodb', 'dynamodb', 'sqlserveraws').

configobject required

Connector-specific configuration. A CDC connector takes dot-notation properties (e.g., 'table.include.list', 'schema.include.list'), listed by GET /sources/connectors with a connector_code query parameter. An API source takes the fields of GET /sources/connectors/{code}/schema (e.g., 'auth_mode', 'resources'), plus 'oauth_grant_id' after Connect.

kc_cluster_idstring nullable

Kafka Connect cluster to deploy this connector to. Omit for the default cluster.

tagsstring[] nullable

List of tag IDs to assign to this source

Response

Successful Response

namestring nullable

User-defined connector name

connectorstring nullable

Connector type (e.g., 'postgresql', 'mysql', 'mongodb')

idstring nullable

Unique identifier

connector_display_namestring nullable

Human-readable connector type name

sub_idstring nullable

Subscription identifier

tenant_idstring nullable

Tenant identifier for multi-tenancy

service_idstring nullable

Associated service identifier

configobject nullable

Connector configuration parameters

topic_mapobject nullable

Mapping of topics to their partitions or related entities

tasksinteger[] nullable

List of task identifiers

connector_statusstring nullable

Current status: Active, Paused, Stopped, Broken, Starting, Unassigned, Unknown, Throttled (an api source waiting out its vendor's rate budget; task_statuses carries suspend_reason and resume_at), or a Pending* state echoed from desired_state while a requested change is being applied

desired_statestring nullable

Desired state: Active, Paused, Stopped, or a pending change Streamkap is still applying — Pending, Pending Update, Pending Delete, Pending Stop, Pending Pause, Pending Resume, Pending Restart

reconcile_errorstring nullable

Why the connector is Broken, as recorded when Streamkap last tried to apply its state. Secrets are masked; absent while the connector is healthy.

connection_warningstring nullable

API sources, on the create and update responses only: what the credential and resource checks found that did not stop the save but needs action, e.g. an ad account that is not active, an access token that expires within 14 days, or a resource that returned no rows (each resource's warning prefixed with its name, <resource>: <warning>). The same texts Test connection returns as its message and as each passing resource's warning. Absent when there is nothing to report.

kc_cluster_idstring nullable

Kafka Connect cluster this connector is deployed to. None means the default cluster.

task_statusesobject nullable

Status information for each connector task

tagsstring[] nullable

List of tag IDs assigned to this source

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the success response with the status