POST
/
api
/
v1
/
table_template
/
{table_template_name}
curl --request POST \
  --url https://your-engine-url/api/v1/table_template/{table_template_name} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "table_template": {
    "columns": [
      {
        "default": "<string>",
        "is_nullable": true,
        "type": "<string>",
        "name": "<string>"
      }
    ],
    "constraints": {
      "unique": [
        {
          "name": "",
          "columns": []
        }
      ],
      "primary_key": {
        "name": "",
        "columns": []
      },
      "foreign_keys": [
        {
          "name": "<string>",
          "reference_schema": "public",
          "reference_column": "<string>",
          "reference_table": "<string>",
          "column": "<string>"
        }
      ]
    }
  },
  "version": "<string>",
  "compatibility": "<string>"
}'
{
  "table_template": {
    "name": "<string>",
    "table_template": {
      "columns": [
        {
          "default": "<string>",
          "is_nullable": true,
          "type": "<string>",
          "name": "<string>"
        }
      ],
      "constraints": {
        "unique": [
          {
            "name": "",
            "columns": []
          }
        ],
        "primary_key": {
          "name": "",
          "columns": []
        },
        "foreign_keys": [
          {
            "name": "<string>",
            "reference_schema": "public",
            "reference_column": "<string>",
            "reference_table": "<string>",
            "column": "<string>"
          }
        ]
      }
    },
    "version": "<string>",
    "compatibility": "<string>",
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Enter: 'Bearer <JWT>', where JWT is the access token. Example: Bearer access_token_comes_here

Path Parameters

table_template_name
string
required

Body

application/json
table_template
object
required
version
string
compatibility
string

Response

200
application/json
Successful Response
table_template
object
required