---
title: "PUT /public/sql/v1/cluster/{cluster}/indexed_topic"
method: PUT
path: "/public/sql/v1/cluster/{cluster}/indexed_topic"
tags: ["cli_indexed-topic_sql_v1_16"]
---

# PUT /public/sql/v1/cluster/{cluster}/indexed_topic

`PUT /public/sql/v1/cluster/{cluster}/indexed_topic`

## 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/sql/v1/cluster/{cluster}/indexed_topic`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/conduktor/apis/conduktor-console-api/docs/public/sql/v1/cluster/:cluster/indexed_topic/put.ts> (a function with typed inputs; its response is checked against the schema)

Create or update a IndexedTopic

## Path parameters

- `cluster` string, required

## Query parameters

- `dryMode` boolean

## Request body

- IndexedTopicResourceV1
  - `apiVersion` string, required
  - `kind` 'IndexedTopic', required
  - `metadata` IndexedTopicMetadata, required
    - `cluster` string, required
    - `name` string, required
  - `spec` IndexedTopicSpec, required
    - `retentionTimeInSecond` integer, required
    - `enabled` boolean

## Response `200`

- IndexedTopicApplyResultV1
  - `resource` IndexedTopicResourceV1, required
    - `apiVersion` string, required
    - `kind` 'IndexedTopic', required
    - `metadata` IndexedTopicMetadata, required
      - `cluster` string, required
      - `name` string, required
    - `spec` IndexedTopicSpec, required
      - `retentionTimeInSecond` integer, required
      - `enabled` boolean
  - `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 indexed-topic 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)
