---
title: "PUT /public/console/v2/cluster/{cluster}/kafka-connect"
method: PUT
path: "/public/console/v2/cluster/{cluster}/kafka-connect"
tags: ["cli_kafka-connect-cluster_console_v2_3"]
---

# PUT /public/console/v2/cluster/{cluster}/kafka-connect

`PUT /public/console/v2/cluster/{cluster}/kafka-connect`

## Request

- Base URL: `https://developers.conduktor.io` (the document declares no server; this is the origin it was published from)
- URL: `https://developers.conduktor.io/public/console/v2/cluster/{cluster}/kafka-connect`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/conduktor/apis/conduktor-console-api/docs/public/console/v2/cluster/:cluster/kafka-connect/put.ts> (a function with typed inputs; its response is checked against the schema)

Create or update a KafkaConnectCluster

## Path parameters

- `cluster` string, required

## Query parameters

- `dryMode` boolean

## Request body

- KafkaConnectClusterResourceV2
  - `apiVersion` string, required
  - `kind` 'KafkaConnectCluster', required
  - `metadata` KafkaConnectMetadata, required
    - `name` string, required
    - `cluster` string, required
    - `labels` MapLabelKeyString
  - `spec` KafkaConnectSpec, required
    - `displayName` string, required
    - `urls` string, required
    - `headers` MapString
    - `ignoreUntrustedCertificate` boolean
    - `security` union
      - BasicAuth1
        - `username` string, required
        - `password` string, required
        - `type` 'BasicAuth', required
      - BearerToken1
        - `token` string, required
        - `type` 'BearerToken', required
      - SSLAuth1
        - `key` string, required
        - `certificateChain` string, required
        - `type` 'SSLAuth', required
    - `policiesRef` string[]

## Response `200`

- KafkaConnectClusterApplyResultV2
  - `resource` KafkaConnectClusterResourceV2, required
    - `apiVersion` string, required
    - `kind` 'KafkaConnectCluster', required
    - `metadata` KafkaConnectMetadata, required
      - `name` string, required
      - `cluster` string, required
      - `labels` MapLabelKeyString
    - `spec` KafkaConnectSpec, required
      - `displayName` string, required
      - `urls` string, required
      - `headers` MapString
      - `ignoreUntrustedCertificate` boolean
      - `security` union
        - BasicAuth1
          - `username` string, required
          - `password` string, required
          - `type` 'BasicAuth', required
        - BearerToken1
          - `token` string, required
          - `type` 'BearerToken', required
        - SSLAuth1
          - `key` string, required
          - `certificateChain` string, required
          - `type` 'SSLAuth', required
      - `policiesRef` string[]
  - `upsertResult` 'Created' | 'Updated' | 'NotChanged', required

## Other responses

- `400`: The request is not valid
- `401`: The user is not authenticated
- `403`: The user doesn't have sufficient privilege to do this operation
- `404`: No kafka-connect-cluster with this technical id exists
- `409`: The request does not match one of the business rules
- `500`: An unexpected error occurred in the server

---

[API](https://skmtc.dev/conduktor/apis/conduktor-console-api.md) - [All operations](https://skmtc.dev/conduktor/apis/conduktor-console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/conduktor/apis/conduktor-console-api/revisions/24750c294805?raw)
