PUT
/
api
/
v1
/
table
/
{table_name}
curl --request PUT \
  --url https://your-engine-url/api/v1/table/{table_name} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "table": {
    "name": "<string>",
    "schema": "<string>",
    "columns": [
      {
        "id": 123,
        "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>"
        }
      ]
    }
  }
}'
{
  "table": {
    "name": "<string>",
    "schema": "<string>",
    "columns": [
      {
        "id": 123,
        "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>"
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

table_name
string
required

Query Parameters

schema
string
default:
public

Body

application/json
table
object
required

Response

200
application/json
Successful Response
table
object
required