# `Kayrock.CreateTopics.V2.Response`
[🔗](https://github.com/kafkaex/kayrock/blob/main/lib/generated/create_topics.ex#L1237)

Kayrock-generated response struct for Kafka `create_topics` v2 API
messages

The schema of this API is
```
[
  throttle_time_ms: :int32,
  topics: {:array,
   [name: :string, error_code: :int16, error_message: :nullable_string]}
]
```

# `t`

```elixir
@type t() :: %Kayrock.CreateTopics.V2.Response{
  correlation_id: integer(),
  throttle_time_ms: nil | integer(),
  topics: [
    %{
      name: nil | binary(),
      error_code: nil | integer(),
      error_message: nil | binary()
    }
  ]
}
```

Response struct for the Kafka `create_topics` API v2

# `api_key`

```elixir
@spec api_key() :: integer()
```

Returns the Kafka API key for this API

# `api_vsn`

```elixir
@spec api_vsn() :: integer()
```

Returns the API version (2) implemented by this module

# `deserialize`

```elixir
@spec deserialize(binary()) :: {t(), binary()}
```

Deserialize data for this version of this API

# `schema`

```elixir
@spec schema() :: term()
```

Returns the schema of this message

See [above](#).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
