---
search:
  tags:
    - Transforms
    - PUT
seo:
  description: >-
    Set… Reference for the PUT
    /transforms/{transforms_id}/set-input-output-topics/{topic_pattern}/{java_replacement_pattern}
    endpoint in the Streamkap REST API.
sidebar:
  label: Set Input Output Topics
  badge: PUT
title: Set Input Output Topics
type: openapi-operation
---
`PUT /transforms/{transforms_id}/set-input-output-topics/{topic_pattern}/{java_replacement_pattern}`

**Responses**

- `200` — Successful Response
- `422` — Validation Error

Response example, 200:

```json
{
  "id": "string",
  "name": "string",
  "sub_id": "string",
  "tenant_id": "string",
  "service_id": "string",
  "start_time": "string",
  "job_name": "string",
  "topic_ids": [
    "string"
  ],
  "transform_type": "fan_out",
  "config": {
    "transforms.name": "string",
    "transforms.language": "string",
    "transforms.input.topic.pattern": "string",
    "transforms.output.topic.pattern": "string",
    "transforms.input.serialization.format": "Any",
    "transforms.output.serialization.format": "Any",
    "transforms.input.job.parallelism": 5,
    "transforms.topic.ttl": "string",
    "kc.cluster.id": "string"
  },
  "implementation": {
    "language": "PYTHON",
    "value_transform": "string",
    "key_transform": "string",
    "topic_transform": "string",
    "common_transform": "string",
    "value_schema_transform": "string",
    "key_schema_transform": "string",
    "unit_test": {
      "test_name": "string",
      "input__json": [
        {
          "topic": "string",
          "value": {},
          "key": {},
          "timestamp": "2019-08-24T14:15:22Z"
        }
      ],
      "output__json": [
        {
          "topic": "string",
          "value": {},
          "key": {},
          "timestamp": "2019-08-24T14:15:22Z"
        }
      ],
      "result__json": [
        {
          "topic": "string",
          "value": {},
          "key": {},
          "timestamp": "2019-08-24T14:15:22Z"
        }
      ],
      "is_success": true,
      "html_diff": "string",
      "text_diff": "string"
    }
  },
  "metrics": {
    "tasks": 0,
    "latency": 0,
    "status": "string",
    "duration": 0,
    "start_time": 0,
    "end_time": "string",
    "checkpoints": {
      "job_id": "string",
      "counts": {},
      "summary": {},
      "latest": {
        "id": 0,
        "status": "string",
        "is_savepoint": true,
        "trigger_timestamp": 0,
        "latest_ack_timestamp": 0,
        "state_size": 0,
        "end_to_end_duration": 0,
        "alignment_buffered": 0,
        "num_subtasks": 0,
        "num_acknowledged_subtasks": 0
      },
      "history": [],
      "operator_breakdown": []
    }
  },
  "live_version": "string",
  "preview_version": "string",
  "version": 1,
  "updated_timestamp": "2019-08-24T14:15:22Z",
  "implementation_updated_timestamp": "2019-08-24T14:15:22Z",
  "description": "string",
  "tags": [
    "string"
  ],
  "history_created_timestamp": "2019-08-24T14:15:22Z",
  "history_updated_timestamp": "2019-08-24T14:15:22Z"
}
```
