POST/v1/4bridge/4segments/tables/preview-ddl

Create tables preview ddl

Not yet documented — no summary in the API source.

RequiresAuthorization: Bearer sk_...tenant_id

Request body application/json

table_namestringnullable
columnsarray of objectFourSegmentsColumnDtonullable
namestringnullable
mysql_typestringnullable
nullableboolean
is_pkboolean
source_field_originstringnullable

Responses

No response body.

curl --request POST \
  --url 'https://api.4comply.io/v1/4bridge/4segments/tables/preview-ddl' \
  --header 'Authorization: Bearer sk_...' \
  --header 'tenant_id: your-tenant-id' \
  --header 'Content-Type: application/json' \
  --data '{
  "table_name": "Example name",
  "columns": [
    {
      "name": "Example name",
      "mysql_type": "string",
      "nullable": true,
      "is_pk": true,
      "source_field_origin": "string"
    }
  ]
}'