---
title: "Create a new connection table"
---

> Documentation Index
> Fetch the complete documentation index at: https://www.arroyo.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a new connection table

Path: Arroyo REST API › connection_tables

`POST /v1/connection_tables`

URL: `http://localhost:5115/api/v1/connection_tables`

## Request body

_Required._

- `config` (`create_connection_table.config`; unknown, required)
- `connector` (`create_connection_table.connector`; string, required)
- `name` (`create_connection_table.name`; string, required)
- `connection_profile_id` (`create_connection_table.connection_profile_id`; string, optional, nullable)
- `schema` (`create_connection_table.schema`; object, optional, nullable)
  - `bad_data` (`create_connection_table.schema.bad_data`; one of, optional, nullable)
    - one of the following:
      - `Fail`
        - `behavior` (`create_connection_table.schema.bad_data.1.behavior`; string, required)
          - one of `"fail"`
      - `Drop`
        - `behavior` (`create_connection_table.schema.bad_data.2.behavior`; string, required)
          - one of `"drop"`
    - discriminator: `behavior`
  - `definition` (`create_connection_table.schema.definition`; one of, optional, nullable)
    - every option has:
      - `schema` (`<option>.schema`; string, required)
    - one of the following, each adding:
      - `JsonSchema` (`create_connection_table.schema.definition.1`)
        - `type` (`create_connection_table.schema.definition.1.type`; string, required)
          - one of `"json_schema"`
      - `Protobuf` (`create_connection_table.schema.definition.2`)
        - `type` (`create_connection_table.schema.definition.2.type`; string, required)
          - one of `"protobuf_schema"`
        - `dependencies` (`create_connection_table.schema.definition.2.dependencies`; map of string, optional)
      - `Avro` (`create_connection_table.schema.definition.3`)
        - `type` (`create_connection_table.schema.definition.3.type`; string, required)
          - one of `"avro_schema"`
    - discriminator: `type`
  - `fields` (`create_connection_table.schema.fields`; array of SourceField, optional)
    - `name` (`create_connection_table.schema.fields.name`; string, required)
    - `metadata_key` (`create_connection_table.schema.fields.metadata_key`; string, optional, nullable)
    - `required` (`create_connection_table.schema.fields.required`; boolean, optional)
    - and one of the following:
      - `Int32`
        - `type` (`create_connection_table.schema.fields.1.type`; string, required)
          - one of `"int32"`
      - `Int64`
        - `type` (`create_connection_table.schema.fields.2.type`; string, required)
          - one of `"int64"`
      - `UInt32`
        - `type` (`create_connection_table.schema.fields.3.type`; string, required)
          - one of `"uint32"`
      - `UInt64`
        - `type` (`create_connection_table.schema.fields.4.type`; string, required)
          - one of `"uint64"`
      - `Float32`
        - `type` (`create_connection_table.schema.fields.5.type`; string, required)
          - one of `"float32"`
      - `Float64`
        - `type` (`create_connection_table.schema.fields.6.type`; string, required)
          - one of `"float64"`
      - `Decimal128`
        - `precision` (`create_connection_table.schema.fields.7.precision`; integer, required)
          - format: `int32` · minimum: `0`
        - `scale` (`create_connection_table.schema.fields.7.scale`; integer, required)
          - format: `int32`
        - `type` (`create_connection_table.schema.fields.7.type`; string, required)
          - one of `"decimal128"`
      - `Bool`
        - `type` (`create_connection_table.schema.fields.8.type`; string, required)
          - one of `"bool"`
      - `String`
        - `type` (`create_connection_table.schema.fields.9.type`; string, required)
          - one of `"string"`
      - `Bytes`
        - `type` (`create_connection_table.schema.fields.10.type`; string, required)
          - one of `"bytes"`
      - `Timestamp`
        - `type` (`create_connection_table.schema.fields.11.type`; string, required)
          - one of `"timestamp"`
        - `unit` (`create_connection_table.schema.fields.11.unit`; string, optional)
          - one of `"second"`, `"millisecond"`, `"microsecond"`, `"nanosecond"`
      - `Json`
        - `type` (`create_connection_table.schema.fields.12.type`; string, required)
          - one of `"json"`
      - `Struct`
        - `fields` (`create_connection_table.schema.fields.13.fields`; array of SourceField, required)
          - `name` (`create_connection_table.schema.fields.13.fields.name`; string, required)
          - `metadata_key` (`create_connection_table.schema.fields.13.fields.metadata_key`; string, optional, nullable)
          - `required` (`create_connection_table.schema.fields.13.fields.required`; boolean, optional)
          - and one of the following:
            - `Int32`
              - `type` (`create_connection_table.schema.fields.13.fields.1.type`; string, required)
                - one of `"int32"`
            - `Int64`
              - `type` (`create_connection_table.schema.fields.13.fields.2.type`; string, required)
                - one of `"int64"`
            - `UInt32`
              - `type` (`create_connection_table.schema.fields.13.fields.3.type`; string, required)
                - one of `"uint32"`
            - `UInt64`
              - `type` (`create_connection_table.schema.fields.13.fields.4.type`; string, required)
                - one of `"uint64"`
            - `Float32`
              - `type` (`create_connection_table.schema.fields.13.fields.5.type`; string, required)
                - one of `"float32"`
            - `Float64`
              - `type` (`create_connection_table.schema.fields.13.fields.6.type`; string, required)
                - one of `"float64"`
            - `Decimal128`
              - `precision` (`create_connection_table.schema.fields.13.fields.7.precision`; integer, required)
                - format: `int32` · minimum: `0`
              - `scale` (`create_connection_table.schema.fields.13.fields.7.scale`; integer, required)
                - format: `int32`
              - `type` (`create_connection_table.schema.fields.13.fields.7.type`; string, required)
                - one of `"decimal128"`
            - `Bool`
              - `type` (`create_connection_table.schema.fields.13.fields.8.type`; string, required)
                - one of `"bool"`
            - `String`
              - `type` (`create_connection_table.schema.fields.13.fields.9.type`; string, required)
                - one of `"string"`
            - `Bytes`
              - `type` (`create_connection_table.schema.fields.13.fields.10.type`; string, required)
                - one of `"bytes"`
            - `Timestamp`
              - `type` (`create_connection_table.schema.fields.13.fields.11.type`; string, required)
                - one of `"timestamp"`
              - `unit` (`create_connection_table.schema.fields.13.fields.11.unit`; string, optional)
                - one of `"second"`, `"millisecond"`, `"microsecond"`, `"nanosecond"`
            - `Json`
              - `type` (`create_connection_table.schema.fields.13.fields.12.type`; string, required)
                - one of `"json"`
            - `Struct`
            - `List`
              - `items` (`create_connection_table.schema.fields.13.fields.14.items`; ListFieldItem, required)
                - `name` (`create_connection_table.schema.fields.13.fields.14.items.name`; string, optional)
                - `required` (`create_connection_table.schema.fields.13.fields.14.items.required`; boolean, optional)
                - and one of the following:
                  - `Int32`
                    - `type` (`create_connection_table.schema.fields.13.fields.14.items.1.type`; string, required)
                      - one of `"int32"`
                  - `Int64`
                    - `type` (`create_connection_table.schema.fields.13.fields.14.items.2.type`; string, required)
                      - one of `"int64"`
                  - `UInt32`
                    - `type` (`create_connection_table.schema.fields.13.fields.14.items.3.type`; string, required)
                      - one of `"uint32"`
                  - `UInt64`
                    - `type` (`create_connection_table.schema.fields.13.fields.14.items.4.type`; string, required)
                      - one of `"uint64"`
                  - `Float32`
                    - `type` (`create_connection_table.schema.fields.13.fields.14.items.5.type`; string, required)
                      - one of `"float32"`
                  - `Float64`
                    - `type` (`create_connection_table.schema.fields.13.fields.14.items.6.type`; string, required)
                      - one of `"float64"`
                  - `Decimal128`
                    - `precision` (`create_connection_table.schema.fields.13.fields.14.items.7.precision`; integer, required)
                      - format: `int32` · minimum: `0`
                    - `scale` (`create_connection_table.schema.fields.13.fields.14.items.7.scale`; integer, required)
                      - format: `int32`
                    - `type` (`create_connection_table.schema.fields.13.fields.14.items.7.type`; string, required)
                      - one of `"decimal128"`
                  - `Bool`
                    - `type` (`create_connection_table.schema.fields.13.fields.14.items.8.type`; string, required)
                      - one of `"bool"`
                  - `String`
                    - `type` (`create_connection_table.schema.fields.13.fields.14.items.9.type`; string, required)
                      - one of `"string"`
                  - `Bytes`
                    - `type` (`create_connection_table.schema.fields.13.fields.14.items.10.type`; string, required)
                      - one of `"bytes"`
                  - `Timestamp`
                    - `type` (`create_connection_table.schema.fields.13.fields.14.items.11.type`; string, required)
                      - one of `"timestamp"`
                    - `unit` (`create_connection_table.schema.fields.13.fields.14.items.11.unit`; string, optional)
                      - one of `"second"`, `"millisecond"`, `"microsecond"`, `"nanosecond"`
                  - `Json`
                    - `type` (`create_connection_table.schema.fields.13.fields.14.items.12.type`; string, required)
                      - one of `"json"`
                  - `Struct`
                  - `List`
                - discriminator: `type`
              - `type` (`create_connection_table.schema.fields.13.fields.14.type`; string, required)
                - one of `"list"`
          - discriminator: `type`
        - `type` (`create_connection_table.schema.fields.13.type`; string, required)
          - one of `"struct"`
      - `List`
        - `items` (`create_connection_table.schema.fields.14.items`; ListFieldItem, required)
          - `name` (`create_connection_table.schema.fields.14.items.name`; string, optional)
          - `required` (`create_connection_table.schema.fields.14.items.required`; boolean, optional)
          - and one of the following:
            - `Int32`
              - `type` (`create_connection_table.schema.fields.14.items.1.type`; string, required)
                - one of `"int32"`
            - `Int64`
              - `type` (`create_connection_table.schema.fields.14.items.2.type`; string, required)
                - one of `"int64"`
            - `UInt32`
              - `type` (`create_connection_table.schema.fields.14.items.3.type`; string, required)
                - one of `"uint32"`
            - `UInt64`
              - `type` (`create_connection_table.schema.fields.14.items.4.type`; string, required)
                - one of `"uint64"`
            - `Float32`
              - `type` (`create_connection_table.schema.fields.14.items.5.type`; string, required)
                - one of `"float32"`
            - `Float64`
              - `type` (`create_connection_table.schema.fields.14.items.6.type`; string, required)
                - one of `"float64"`
            - `Decimal128`
              - `precision` (`create_connection_table.schema.fields.14.items.7.precision`; integer, required)
                - format: `int32` · minimum: `0`
              - `scale` (`create_connection_table.schema.fields.14.items.7.scale`; integer, required)
                - format: `int32`
              - `type` (`create_connection_table.schema.fields.14.items.7.type`; string, required)
                - one of `"decimal128"`
            - `Bool`
              - `type` (`create_connection_table.schema.fields.14.items.8.type`; string, required)
                - one of `"bool"`
            - `String`
              - `type` (`create_connection_table.schema.fields.14.items.9.type`; string, required)
                - one of `"string"`
            - `Bytes`
              - `type` (`create_connection_table.schema.fields.14.items.10.type`; string, required)
                - one of `"bytes"`
            - `Timestamp`
              - `type` (`create_connection_table.schema.fields.14.items.11.type`; string, required)
                - one of `"timestamp"`
              - `unit` (`create_connection_table.schema.fields.14.items.11.unit`; string, optional)
                - one of `"second"`, `"millisecond"`, `"microsecond"`, `"nanosecond"`
            - `Json`
              - `type` (`create_connection_table.schema.fields.14.items.12.type`; string, required)
                - one of `"json"`
            - `Struct`
              - `fields` (`create_connection_table.schema.fields.14.items.13.fields`; array of SourceField, required)
                - `name` (`create_connection_table.schema.fields.14.items.13.fields.name`; string, required)
                - `metadata_key` (`create_connection_table.schema.fields.14.items.13.fields.metadata_key`; string, optional, nullable)
                - `required` (`create_connection_table.schema.fields.14.items.13.fields.required`; boolean, optional)
                - and one of the following:
                  - `Int32`
                    - `type` (`create_connection_table.schema.fields.14.items.13.fields.1.type`; string, required)
                      - one of `"int32"`
                  - `Int64`
                    - `type` (`create_connection_table.schema.fields.14.items.13.fields.2.type`; string, required)
                      - one of `"int64"`
                  - `UInt32`
                    - `type` (`create_connection_table.schema.fields.14.items.13.fields.3.type`; string, required)
                      - one of `"uint32"`
                  - `UInt64`
                    - `type` (`create_connection_table.schema.fields.14.items.13.fields.4.type`; string, required)
                      - one of `"uint64"`
                  - `Float32`
                    - `type` (`create_connection_table.schema.fields.14.items.13.fields.5.type`; string, required)
                      - one of `"float32"`
                  - `Float64`
                    - `type` (`create_connection_table.schema.fields.14.items.13.fields.6.type`; string, required)
                      - one of `"float64"`
                  - `Decimal128`
                    - `precision` (`create_connection_table.schema.fields.14.items.13.fields.7.precision`; integer, required)
                      - format: `int32` · minimum: `0`
                    - `scale` (`create_connection_table.schema.fields.14.items.13.fields.7.scale`; integer, required)
                      - format: `int32`
                    - `type` (`create_connection_table.schema.fields.14.items.13.fields.7.type`; string, required)
                      - one of `"decimal128"`
                  - `Bool`
                    - `type` (`create_connection_table.schema.fields.14.items.13.fields.8.type`; string, required)
                      - one of `"bool"`
                  - `String`
                    - `type` (`create_connection_table.schema.fields.14.items.13.fields.9.type`; string, required)
                      - one of `"string"`
                  - `Bytes`
                    - `type` (`create_connection_table.schema.fields.14.items.13.fields.10.type`; string, required)
                      - one of `"bytes"`
                  - `Timestamp`
                    - `type` (`create_connection_table.schema.fields.14.items.13.fields.11.type`; string, required)
                      - one of `"timestamp"`
                    - `unit` (`create_connection_table.schema.fields.14.items.13.fields.11.unit`; string, optional)
                      - one of `"second"`, `"millisecond"`, `"microsecond"`, `"nanosecond"`
                  - `Json`
                    - `type` (`create_connection_table.schema.fields.14.items.13.fields.12.type`; string, required)
                      - one of `"json"`
                  - `Struct`
                  - `List`
                - discriminator: `type`
              - `type` (`create_connection_table.schema.fields.14.items.13.type`; string, required)
                - one of `"struct"`
            - `List`
          - discriminator: `type`
        - `type` (`create_connection_table.schema.fields.14.type`; string, required)
          - one of `"list"`
    - discriminator: `type`
  - `format` (`create_connection_table.schema.format`; one of, optional, nullable)
    - one of the following:
      - `Json`
        - `type` (`create_connection_table.schema.format.1.type`; string, required)
          - one of `"json"`
        - `compression` (`create_connection_table.schema.format.1.compression`; string, optional)
          - one of `"uncompressed"`, `"gzip"`
        - `confluent_schema_registry` (`create_connection_table.schema.format.1.confluent_schema_registry`; boolean, optional)
        - `debezium` (`create_connection_table.schema.format.1.debezium`; boolean, optional)
        - `decimal_encoding` (`create_connection_table.schema.format.1.decimal_encoding`; string, optional)
          - one of `"number"`, `"string"`, `"bytes"`
        - `include_schema` (`create_connection_table.schema.format.1.include_schema`; boolean, optional)
        - `schema_id` (`create_connection_table.schema.format.1.schema_id`; integer, optional, nullable)
          - format: `int32` · minimum: `0`
        - `timestamp_format` (`create_connection_table.schema.format.1.timestamp_format`; string, optional)
          - one of `"rfc3339"`, `"unix_millis"`
        - `unstructured` (`create_connection_table.schema.format.1.unstructured`; boolean, optional)
      - `Avro`
        - `type` (`create_connection_table.schema.format.2.type`; string, required)
          - one of `"avro"`
        - `confluent_schema_registry` (`create_connection_table.schema.format.2.confluent_schema_registry`; boolean, optional)
        - `into_unstructured_json` (`create_connection_table.schema.format.2.into_unstructured_json`; boolean, optional)
        - `raw_datums` (`create_connection_table.schema.format.2.raw_datums`; boolean, optional)
      - `Protobuf`
        - `type` (`create_connection_table.schema.format.3.type`; string, required)
          - one of `"protobuf"`
        - `compiled_schema` (`create_connection_table.schema.format.3.compiled_schema`; string, optional, nullable)
          - format: `binary`
        - `confluent_schema_registry` (`create_connection_table.schema.format.3.confluent_schema_registry`; boolean, optional)
        - `into_unstructured_json` (`create_connection_table.schema.format.3.into_unstructured_json`; boolean, optional)
        - `length_delimited` (`create_connection_table.schema.format.3.length_delimited`; boolean, optional)
        - `message_name` (`create_connection_table.schema.format.3.message_name`; string, optional, nullable)
      - `Parquet`
        - `type` (`create_connection_table.schema.format.4.type`; string, required)
          - one of `"parquet"`
        - `compression` (`create_connection_table.schema.format.4.compression`; string, optional)
          - one of `"uncompressed"`, `"snappy"`, `"gzip"`, `"zstd"`, `"lz4"`, `"lz4_raw"`
        - `row_group_bytes` (`create_connection_table.schema.format.4.row_group_bytes`; integer, optional, nullable)
          - format: `int64` · minimum: `0`
      - `RawString`
        - `type` (`create_connection_table.schema.format.5.type`; string, required)
          - one of `"raw_string"`
      - `RawBytes`
        - `type` (`create_connection_table.schema.format.6.type`; string, required)
          - one of `"raw_bytes"`
    - discriminator: `type`
  - `framing` (`create_connection_table.schema.framing`; one of, optional, nullable)
    - one of the following:
      - `Newline`
        - `method` (`create_connection_table.schema.framing.1.method`; string, required)
          - one of `"newline"`
        - `max_line_length` (`create_connection_table.schema.framing.1.max_line_length`; integer, optional, nullable)
          - format: `int64` · minimum: `0`
    - discriminator: `method`
  - `inferred` (`create_connection_table.schema.inferred`; boolean, optional, nullable)
  - `primary_keys` (`create_connection_table.schema.primary_keys`; array of string, optional)

## Example request

```json
{
  "config": null,
  "connection_profile_id": "string",
  "connector": "string",
  "name": "string",
  "schema": {
    "bad_data": {
      "behavior": "fail"
    },
    "definition": {
      "schema": "string",
      "type": "json_schema"
    },
    "fields": [
      {
        "type": "int32",
        "metadata_key": "string",
        "name": "string",
        "required": true
      }
    ],
    "format": {
      "compression": "uncompressed",
      "confluent_schema_registry": true,
      "debezium": true,
      "decimal_encoding": "number",
      "include_schema": true,
      "schema_id": 0,
      "timestamp_format": "rfc3339",
      "unstructured": true,
      "type": "json"
    },
    "framing": {
      "max_line_length": 0,
      "method": "newline"
    },
    "inferred": true,
    "primary_keys": [
      "string"
    ]
  }
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url http://localhost:5115/api/v1/connection_tables \
  --header 'Content-Type: application/json' \
  --data '
{
  "config": null,
  "connection_profile_id": "string",
  "connector": "string",
  "name": "string",
  "schema": {
    "bad_data": {
      "behavior": "fail"
    },
    "definition": {
      "schema": "string",
      "type": "json_schema"
    },
    "fields": [
      {
        "type": "int32",
        "metadata_key": "string",
        "name": "string",
        "required": true
      }
    ],
    "format": {
      "compression": "uncompressed",
      "confluent_schema_registry": true,
      "debezium": true,
      "decimal_encoding": "number",
      "include_schema": true,
      "schema_id": 0,
      "timestamp_format": "rfc3339",
      "unstructured": true,
      "type": "json"
    },
    "framing": {
      "max_line_length": 0,
      "method": "newline"
    },
    "inferred": true,
    "primary_keys": [
      "string"
    ]
  }
}
'
```

### TypeScript

```typescript
const url = 'http://localhost:5115/api/v1/connection_tables';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({
    config: null,
    connection_profile_id: 'string',
    connector: 'string',
    name: 'string',
    schema: {
      bad_data: {behavior: 'fail'},
      definition: {schema: 'string', type: 'json_schema'},
      fields: [{type: 'int32', metadata_key: 'string', name: 'string', required: true}],
      format: {
        compression: 'uncompressed',
        confluent_schema_registry: true,
        debezium: true,
        decimal_encoding: 'number',
        include_schema: true,
        schema_id: 0,
        timestamp_format: 'rfc3339',
        unstructured: true,
        type: 'json'
      },
      framing: {max_line_length: 0, method: 'newline'},
      inferred: true,
      primary_keys: ['string']
    }
  })
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "http://localhost:5115/api/v1/connection_tables"

payload = {
    "config": None,
    "connection_profile_id": "string",
    "connector": "string",
    "name": "string",
    "schema": {
        "bad_data": { "behavior": "fail" },
        "definition": {
            "schema": "string",
            "type": "json_schema"
        },
        "fields": [
            {
                "type": "int32",
                "metadata_key": "string",
                "name": "string",
                "required": True
            }
        ],
        "format": {
            "compression": "uncompressed",
            "confluent_schema_registry": True,
            "debezium": True,
            "decimal_encoding": "number",
            "include_schema": True,
            "schema_id": 0,
            "timestamp_format": "rfc3339",
            "unstructured": True,
            "type": "json"
        },
        "framing": {
            "max_line_length": 0,
            "method": "newline"
        },
        "inferred": True,
        "primary_keys": ["string"]
    }
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Created connection table

#### Example

```json
{
  "config": null,
  "connection_profile": {
    "config": null,
    "connector": "string",
    "description": "string",
    "id": "string",
    "name": "string"
  },
  "connector": "string",
  "consumers": 0,
  "created_at": 0,
  "id": "string",
  "name": "string",
  "schema": {
    "bad_data": {
      "behavior": "fail"
    },
    "definition": {
      "schema": "string",
      "type": "json_schema"
    },
    "fields": [
      {
        "type": "int32",
        "metadata_key": "string",
        "name": "string",
        "required": true,
        "sql_name": "string"
      }
    ],
    "format": {
      "compression": "uncompressed",
      "confluent_schema_registry": true,
      "debezium": true,
      "decimal_encoding": "number",
      "include_schema": true,
      "schema_id": 0,
      "timestamp_format": "rfc3339",
      "unstructured": true,
      "type": "json"
    },
    "framing": {
      "max_line_length": 0,
      "method": "newline"
    },
    "inferred": true,
    "primary_keys": [
      "string"
    ]
  },
  "table_type": "source"
}
```

- `config` (`create_connection_table.response.200.config`; unknown, required)
- `connector` (`create_connection_table.response.200.connector`; string, required)
- `consumers` (`create_connection_table.response.200.consumers`; integer, required)
  - format: `int32` · minimum: `0`
- `created_at` (`create_connection_table.response.200.created_at`; integer, required)
  - format: `int64` · minimum: `0`
- `id` (`create_connection_table.response.200.id`; string, required)
- `name` (`create_connection_table.response.200.name`; string, required)
- `schema` (`create_connection_table.response.200.schema`; object, required)
  - `bad_data` (`create_connection_table.response.200.schema.bad_data`; one of, optional, nullable)
    - one of the following:
      - `Fail`
        - `behavior` (`create_connection_table.response.200.schema.bad_data.1.behavior`; string, required)
          - one of `"fail"`
      - `Drop`
        - `behavior` (`create_connection_table.response.200.schema.bad_data.2.behavior`; string, required)
          - one of `"drop"`
    - discriminator: `behavior`
  - `definition` (`create_connection_table.response.200.schema.definition`; one of, optional, nullable)
    - every option has:
      - `schema` (`<option>.schema`; string, required)
    - one of the following, each adding:
      - `JsonSchema` (`create_connection_table.response.200.schema.definition.1`)
        - `type` (`create_connection_table.response.200.schema.definition.1.type`; string, required)
          - one of `"json_schema"`
      - `Protobuf` (`create_connection_table.response.200.schema.definition.2`)
        - `type` (`create_connection_table.response.200.schema.definition.2.type`; string, required)
          - one of `"protobuf_schema"`
        - `dependencies` (`create_connection_table.response.200.schema.definition.2.dependencies`; map of string, optional)
      - `Avro` (`create_connection_table.response.200.schema.definition.3`)
        - `type` (`create_connection_table.response.200.schema.definition.3.type`; string, required)
          - one of `"avro_schema"`
    - discriminator: `type`
  - `fields` (`create_connection_table.response.200.schema.fields`; array of SourceField, optional)
    - `name` (`create_connection_table.response.200.schema.fields.name`; string, required)
    - `metadata_key` (`create_connection_table.response.200.schema.fields.metadata_key`; string, optional, nullable)
    - `required` (`create_connection_table.response.200.schema.fields.required`; boolean, optional)
    - `sql_name` (`create_connection_table.response.200.schema.fields.sql_name`; string, optional, nullable)
    - and one of the following:
      - `Int32`
        - `type` (`create_connection_table.response.200.schema.fields.1.type`; string, required)
          - one of `"int32"`
      - `Int64`
        - `type` (`create_connection_table.response.200.schema.fields.2.type`; string, required)
          - one of `"int64"`
      - `UInt32`
        - `type` (`create_connection_table.response.200.schema.fields.3.type`; string, required)
          - one of `"uint32"`
      - `UInt64`
        - `type` (`create_connection_table.response.200.schema.fields.4.type`; string, required)
          - one of `"uint64"`
      - `Float32`
        - `type` (`create_connection_table.response.200.schema.fields.5.type`; string, required)
          - one of `"float32"`
      - `Float64`
        - `type` (`create_connection_table.response.200.schema.fields.6.type`; string, required)
          - one of `"float64"`
      - `Decimal128`
        - `precision` (`create_connection_table.response.200.schema.fields.7.precision`; integer, required)
          - format: `int32` · minimum: `0`
        - `scale` (`create_connection_table.response.200.schema.fields.7.scale`; integer, required)
          - format: `int32`
        - `type` (`create_connection_table.response.200.schema.fields.7.type`; string, required)
          - one of `"decimal128"`
      - `Bool`
        - `type` (`create_connection_table.response.200.schema.fields.8.type`; string, required)
          - one of `"bool"`
      - `String`
        - `type` (`create_connection_table.response.200.schema.fields.9.type`; string, required)
          - one of `"string"`
      - `Bytes`
        - `type` (`create_connection_table.response.200.schema.fields.10.type`; string, required)
          - one of `"bytes"`
      - `Timestamp`
        - `type` (`create_connection_table.response.200.schema.fields.11.type`; string, required)
          - one of `"timestamp"`
        - `unit` (`create_connection_table.response.200.schema.fields.11.unit`; string, optional)
          - one of `"second"`, `"millisecond"`, `"microsecond"`, `"nanosecond"`
      - `Json`
        - `type` (`create_connection_table.response.200.schema.fields.12.type`; string, required)
          - one of `"json"`
      - `Struct`
        - `fields` (`create_connection_table.response.200.schema.fields.13.fields`; array of SourceField, required)
          - `name` (`create_connection_table.response.200.schema.fields.13.fields.name`; string, required)
          - `metadata_key` (`create_connection_table.response.200.schema.fields.13.fields.metadata_key`; string, optional, nullable)
          - `required` (`create_connection_table.response.200.schema.fields.13.fields.required`; boolean, optional)
          - `sql_name` (`create_connection_table.response.200.schema.fields.13.fields.sql_name`; string, optional, nullable)
          - and one of the following:
            - `Int32`
              - `type` (`create_connection_table.response.200.schema.fields.13.fields.1.type`; string, required)
                - one of `"int32"`
            - `Int64`
              - `type` (`create_connection_table.response.200.schema.fields.13.fields.2.type`; string, required)
                - one of `"int64"`
            - `UInt32`
              - `type` (`create_connection_table.response.200.schema.fields.13.fields.3.type`; string, required)
                - one of `"uint32"`
            - `UInt64`
              - `type` (`create_connection_table.response.200.schema.fields.13.fields.4.type`; string, required)
                - one of `"uint64"`
            - `Float32`
              - `type` (`create_connection_table.response.200.schema.fields.13.fields.5.type`; string, required)
                - one of `"float32"`
            - `Float64`
              - `type` (`create_connection_table.response.200.schema.fields.13.fields.6.type`; string, required)
                - one of `"float64"`
            - `Decimal128`
              - `precision` (`create_connection_table.response.200.schema.fields.13.fields.7.precision`; integer, required)
                - format: `int32` · minimum: `0`
              - `scale` (`create_connection_table.response.200.schema.fields.13.fields.7.scale`; integer, required)
                - format: `int32`
              - `type` (`create_connection_table.response.200.schema.fields.13.fields.7.type`; string, required)
                - one of `"decimal128"`
            - `Bool`
              - `type` (`create_connection_table.response.200.schema.fields.13.fields.8.type`; string, required)
                - one of `"bool"`
            - `String`
              - `type` (`create_connection_table.response.200.schema.fields.13.fields.9.type`; string, required)
                - one of `"string"`
            - `Bytes`
              - `type` (`create_connection_table.response.200.schema.fields.13.fields.10.type`; string, required)
                - one of `"bytes"`
            - `Timestamp`
              - `type` (`create_connection_table.response.200.schema.fields.13.fields.11.type`; string, required)
                - one of `"timestamp"`
              - `unit` (`create_connection_table.response.200.schema.fields.13.fields.11.unit`; string, optional)
                - one of `"second"`, `"millisecond"`, `"microsecond"`, `"nanosecond"`
            - `Json`
              - `type` (`create_connection_table.response.200.schema.fields.13.fields.12.type`; string, required)
                - one of `"json"`
            - `Struct`
            - `List`
              - `items` (`create_connection_table.response.200.schema.fields.13.fields.14.items`; ListFieldItem, required)
                - `name` (`create_connection_table.response.200.schema.fields.13.fields.14.items.name`; string, optional)
                - `required` (`create_connection_table.response.200.schema.fields.13.fields.14.items.required`; boolean, optional)
                - `sql_name` (`create_connection_table.response.200.schema.fields.13.fields.14.items.sql_name`; string, optional, nullable)
                - and one of the following:
                  - `Int32`
                    - `type` (`create_connection_table.response.200.schema.fields.13.fields.14.items.1.type`; string, required)
                      - one of `"int32"`
                  - `Int64`
                    - `type` (`create_connection_table.response.200.schema.fields.13.fields.14.items.2.type`; string, required)
                      - one of `"int64"`
                  - `UInt32`
                    - `type` (`create_connection_table.response.200.schema.fields.13.fields.14.items.3.type`; string, required)
                      - one of `"uint32"`
                  - `UInt64`
                    - `type` (`create_connection_table.response.200.schema.fields.13.fields.14.items.4.type`; string, required)
                      - one of `"uint64"`
                  - `Float32`
                    - `type` (`create_connection_table.response.200.schema.fields.13.fields.14.items.5.type`; string, required)
                      - one of `"float32"`
                  - `Float64`
                    - `type` (`create_connection_table.response.200.schema.fields.13.fields.14.items.6.type`; string, required)
                      - one of `"float64"`
                  - `Decimal128`
                    - `precision` (`create_connection_table.response.200.schema.fields.13.fields.14.items.7.precision`; integer, required)
                      - format: `int32` · minimum: `0`
                    - `scale` (`create_connection_table.response.200.schema.fields.13.fields.14.items.7.scale`; integer, required)
                      - format: `int32`
                    - `type` (`create_connection_table.response.200.schema.fields.13.fields.14.items.7.type`; string, required)
                      - one of `"decimal128"`
                  - `Bool`
                    - `type` (`create_connection_table.response.200.schema.fields.13.fields.14.items.8.type`; string, required)
                      - one of `"bool"`
                  - `String`
                    - `type` (`create_connection_table.response.200.schema.fields.13.fields.14.items.9.type`; string, required)
                      - one of `"string"`
                  - `Bytes`
                    - `type` (`create_connection_table.response.200.schema.fields.13.fields.14.items.10.type`; string, required)
                      - one of `"bytes"`
                  - `Timestamp`
                    - `type` (`create_connection_table.response.200.schema.fields.13.fields.14.items.11.type`; string, required)
                      - one of `"timestamp"`
                    - `unit` (`create_connection_table.response.200.schema.fields.13.fields.14.items.11.unit`; string, optional)
                      - one of `"second"`, `"millisecond"`, `"microsecond"`, `"nanosecond"`
                  - `Json`
                    - `type` (`create_connection_table.response.200.schema.fields.13.fields.14.items.12.type`; string, required)
                      - one of `"json"`
                  - `Struct`
                  - `List`
                - discriminator: `type`
              - `type` (`create_connection_table.response.200.schema.fields.13.fields.14.type`; string, required)
                - one of `"list"`
          - discriminator: `type`
        - `type` (`create_connection_table.response.200.schema.fields.13.type`; string, required)
          - one of `"struct"`
      - `List`
        - `items` (`create_connection_table.response.200.schema.fields.14.items`; ListFieldItem, required)
          - `name` (`create_connection_table.response.200.schema.fields.14.items.name`; string, optional)
          - `required` (`create_connection_table.response.200.schema.fields.14.items.required`; boolean, optional)
          - `sql_name` (`create_connection_table.response.200.schema.fields.14.items.sql_name`; string, optional, nullable)
          - and one of the following:
            - `Int32`
              - `type` (`create_connection_table.response.200.schema.fields.14.items.1.type`; string, required)
                - one of `"int32"`
            - `Int64`
              - `type` (`create_connection_table.response.200.schema.fields.14.items.2.type`; string, required)
                - one of `"int64"`
            - `UInt32`
              - `type` (`create_connection_table.response.200.schema.fields.14.items.3.type`; string, required)
                - one of `"uint32"`
            - `UInt64`
              - `type` (`create_connection_table.response.200.schema.fields.14.items.4.type`; string, required)
                - one of `"uint64"`
            - `Float32`
              - `type` (`create_connection_table.response.200.schema.fields.14.items.5.type`; string, required)
                - one of `"float32"`
            - `Float64`
              - `type` (`create_connection_table.response.200.schema.fields.14.items.6.type`; string, required)
                - one of `"float64"`
            - `Decimal128`
              - `precision` (`create_connection_table.response.200.schema.fields.14.items.7.precision`; integer, required)
                - format: `int32` · minimum: `0`
              - `scale` (`create_connection_table.response.200.schema.fields.14.items.7.scale`; integer, required)
                - format: `int32`
              - `type` (`create_connection_table.response.200.schema.fields.14.items.7.type`; string, required)
                - one of `"decimal128"`
            - `Bool`
              - `type` (`create_connection_table.response.200.schema.fields.14.items.8.type`; string, required)
                - one of `"bool"`
            - `String`
              - `type` (`create_connection_table.response.200.schema.fields.14.items.9.type`; string, required)
                - one of `"string"`
            - `Bytes`
              - `type` (`create_connection_table.response.200.schema.fields.14.items.10.type`; string, required)
                - one of `"bytes"`
            - `Timestamp`
              - `type` (`create_connection_table.response.200.schema.fields.14.items.11.type`; string, required)
                - one of `"timestamp"`
              - `unit` (`create_connection_table.response.200.schema.fields.14.items.11.unit`; string, optional)
                - one of `"second"`, `"millisecond"`, `"microsecond"`, `"nanosecond"`
            - `Json`
              - `type` (`create_connection_table.response.200.schema.fields.14.items.12.type`; string, required)
                - one of `"json"`
            - `Struct`
              - `fields` (`create_connection_table.response.200.schema.fields.14.items.13.fields`; array of SourceField, required)
                - `name` (`create_connection_table.response.200.schema.fields.14.items.13.fields.name`; string, required)
                - `metadata_key` (`create_connection_table.response.200.schema.fields.14.items.13.fields.metadata_key`; string, optional, nullable)
                - `required` (`create_connection_table.response.200.schema.fields.14.items.13.fields.required`; boolean, optional)
                - `sql_name` (`create_connection_table.response.200.schema.fields.14.items.13.fields.sql_name`; string, optional, nullable)
                - and one of the following:
                  - `Int32`
                    - `type` (`create_connection_table.response.200.schema.fields.14.items.13.fields.1.type`; string, required)
                      - one of `"int32"`
                  - `Int64`
                    - `type` (`create_connection_table.response.200.schema.fields.14.items.13.fields.2.type`; string, required)
                      - one of `"int64"`
                  - `UInt32`
                    - `type` (`create_connection_table.response.200.schema.fields.14.items.13.fields.3.type`; string, required)
                      - one of `"uint32"`
                  - `UInt64`
                    - `type` (`create_connection_table.response.200.schema.fields.14.items.13.fields.4.type`; string, required)
                      - one of `"uint64"`
                  - `Float32`
                    - `type` (`create_connection_table.response.200.schema.fields.14.items.13.fields.5.type`; string, required)
                      - one of `"float32"`
                  - `Float64`
                    - `type` (`create_connection_table.response.200.schema.fields.14.items.13.fields.6.type`; string, required)
                      - one of `"float64"`
                  - `Decimal128`
                    - `precision` (`create_connection_table.response.200.schema.fields.14.items.13.fields.7.precision`; integer, required)
                      - format: `int32` · minimum: `0`
                    - `scale` (`create_connection_table.response.200.schema.fields.14.items.13.fields.7.scale`; integer, required)
                      - format: `int32`
                    - `type` (`create_connection_table.response.200.schema.fields.14.items.13.fields.7.type`; string, required)
                      - one of `"decimal128"`
                  - `Bool`
                    - `type` (`create_connection_table.response.200.schema.fields.14.items.13.fields.8.type`; string, required)
                      - one of `"bool"`
                  - `String`
                    - `type` (`create_connection_table.response.200.schema.fields.14.items.13.fields.9.type`; string, required)
                      - one of `"string"`
                  - `Bytes`
                    - `type` (`create_connection_table.response.200.schema.fields.14.items.13.fields.10.type`; string, required)
                      - one of `"bytes"`
                  - `Timestamp`
                    - `type` (`create_connection_table.response.200.schema.fields.14.items.13.fields.11.type`; string, required)
                      - one of `"timestamp"`
                    - `unit` (`create_connection_table.response.200.schema.fields.14.items.13.fields.11.unit`; string, optional)
                      - one of `"second"`, `"millisecond"`, `"microsecond"`, `"nanosecond"`
                  - `Json`
                    - `type` (`create_connection_table.response.200.schema.fields.14.items.13.fields.12.type`; string, required)
                      - one of `"json"`
                  - `Struct`
                  - `List`
                - discriminator: `type`
              - `type` (`create_connection_table.response.200.schema.fields.14.items.13.type`; string, required)
                - one of `"struct"`
            - `List`
          - discriminator: `type`
        - `type` (`create_connection_table.response.200.schema.fields.14.type`; string, required)
          - one of `"list"`
    - discriminator: `type`
  - `format` (`create_connection_table.response.200.schema.format`; one of, optional, nullable)
    - one of the following:
      - `Json`
        - `type` (`create_connection_table.response.200.schema.format.1.type`; string, required)
          - one of `"json"`
        - `compression` (`create_connection_table.response.200.schema.format.1.compression`; string, optional)
          - one of `"uncompressed"`, `"gzip"`
        - `confluent_schema_registry` (`create_connection_table.response.200.schema.format.1.confluent_schema_registry`; boolean, optional)
        - `debezium` (`create_connection_table.response.200.schema.format.1.debezium`; boolean, optional)
        - `decimal_encoding` (`create_connection_table.response.200.schema.format.1.decimal_encoding`; string, optional)
          - one of `"number"`, `"string"`, `"bytes"`
        - `include_schema` (`create_connection_table.response.200.schema.format.1.include_schema`; boolean, optional)
        - `schema_id` (`create_connection_table.response.200.schema.format.1.schema_id`; integer, optional, nullable)
          - format: `int32` · minimum: `0`
        - `timestamp_format` (`create_connection_table.response.200.schema.format.1.timestamp_format`; string, optional)
          - one of `"rfc3339"`, `"unix_millis"`
        - `unstructured` (`create_connection_table.response.200.schema.format.1.unstructured`; boolean, optional)
      - `Avro`
        - `type` (`create_connection_table.response.200.schema.format.2.type`; string, required)
          - one of `"avro"`
        - `confluent_schema_registry` (`create_connection_table.response.200.schema.format.2.confluent_schema_registry`; boolean, optional)
        - `into_unstructured_json` (`create_connection_table.response.200.schema.format.2.into_unstructured_json`; boolean, optional)
        - `raw_datums` (`create_connection_table.response.200.schema.format.2.raw_datums`; boolean, optional)
        - `reader_schema` (`create_connection_table.response.200.schema.format.2.reader_schema`; string, optional)
        - `schema_id` (`create_connection_table.response.200.schema.format.2.schema_id`; integer, optional, nullable)
          - format: `int32` · minimum: `0`
      - `Protobuf`
        - `type` (`create_connection_table.response.200.schema.format.3.type`; string, required)
          - one of `"protobuf"`
        - `compiled_schema` (`create_connection_table.response.200.schema.format.3.compiled_schema`; string, optional, nullable)
          - format: `binary`
        - `confluent_schema_registry` (`create_connection_table.response.200.schema.format.3.confluent_schema_registry`; boolean, optional)
        - `into_unstructured_json` (`create_connection_table.response.200.schema.format.3.into_unstructured_json`; boolean, optional)
        - `length_delimited` (`create_connection_table.response.200.schema.format.3.length_delimited`; boolean, optional)
        - `message_name` (`create_connection_table.response.200.schema.format.3.message_name`; string, optional, nullable)
      - `Parquet`
        - `type` (`create_connection_table.response.200.schema.format.4.type`; string, required)
          - one of `"parquet"`
        - `compression` (`create_connection_table.response.200.schema.format.4.compression`; string, optional)
          - one of `"uncompressed"`, `"snappy"`, `"gzip"`, `"zstd"`, `"lz4"`, `"lz4_raw"`
        - `row_group_bytes` (`create_connection_table.response.200.schema.format.4.row_group_bytes`; integer, optional, nullable)
          - format: `int64` · minimum: `0`
      - `RawString`
        - `type` (`create_connection_table.response.200.schema.format.5.type`; string, required)
          - one of `"raw_string"`
      - `RawBytes`
        - `type` (`create_connection_table.response.200.schema.format.6.type`; string, required)
          - one of `"raw_bytes"`
    - discriminator: `type`
  - `framing` (`create_connection_table.response.200.schema.framing`; one of, optional, nullable)
    - one of the following:
      - `Newline`
        - `method` (`create_connection_table.response.200.schema.framing.1.method`; string, required)
          - one of `"newline"`
        - `max_line_length` (`create_connection_table.response.200.schema.framing.1.max_line_length`; integer, optional, nullable)
          - format: `int64` · minimum: `0`
    - discriminator: `method`
  - `inferred` (`create_connection_table.response.200.schema.inferred`; boolean, optional, nullable)
  - `primary_keys` (`create_connection_table.response.200.schema.primary_keys`; array of string, optional)
- `table_type` (`create_connection_table.response.200.table_type`; string, required)
  - one of `"source"`, `"sink"`, `"lookup"`
- `connection_profile` (`create_connection_table.response.200.connection_profile`; object, optional, nullable)
  - `config` (`create_connection_table.response.200.connection_profile.config`; unknown, required)
  - `connector` (`create_connection_table.response.200.connection_profile.connector`; string, required)
  - `description` (`create_connection_table.response.200.connection_profile.description`; string, required)
  - `id` (`create_connection_table.response.200.connection_profile.id`; string, required)
  - `name` (`create_connection_table.response.200.connection_profile.name`; string, required)


Source: https://www.arroyo.dev/docs/api/create-connection-table/index.md
