Generate transforms or sync config for selected tables (T3.4, T3.7, T3.8)
curl --request POST \
--url https://api.example.com/connectors/generate-transforms \
--header 'Content-Type: application/json' \
--data '
{
"connector_id": "<string>",
"selected_tables": [
{
"table": "<string>",
"columns": [
{
"name": "<string>",
"type": "<string>",
"is_primary_key": false,
"pii_classification": "none",
"sample_values": []
}
],
"schema": "public",
"pii_overrides": {}
}
]
}
'import requests
url = "https://api.example.com/connectors/generate-transforms"
payload = {
"connector_id": "<string>",
"selected_tables": [
{
"table": "<string>",
"columns": [
{
"name": "<string>",
"type": "<string>",
"is_primary_key": False,
"pii_classification": "none",
"sample_values": []
}
],
"schema": "public",
"pii_overrides": {}
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
connector_id: '<string>',
selected_tables: [
{
table: '<string>',
columns: [
{
name: '<string>',
type: '<string>',
is_primary_key: false,
pii_classification: 'none',
sample_values: []
}
],
schema: 'public',
pii_overrides: {}
}
]
})
};
fetch('https://api.example.com/connectors/generate-transforms', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/connectors/generate-transforms",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'connector_id' => '<string>',
'selected_tables' => [
[
'table' => '<string>',
'columns' => [
[
'name' => '<string>',
'type' => '<string>',
'is_primary_key' => false,
'pii_classification' => 'none',
'sample_values' => [
]
]
],
'schema' => 'public',
'pii_overrides' => [
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/connectors/generate-transforms"
payload := strings.NewReader("{\n \"connector_id\": \"<string>\",\n \"selected_tables\": [\n {\n \"table\": \"<string>\",\n \"columns\": [\n {\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"is_primary_key\": false,\n \"pii_classification\": \"none\",\n \"sample_values\": []\n }\n ],\n \"schema\": \"public\",\n \"pii_overrides\": {}\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/connectors/generate-transforms")
.header("Content-Type", "application/json")
.body("{\n \"connector_id\": \"<string>\",\n \"selected_tables\": [\n {\n \"table\": \"<string>\",\n \"columns\": [\n {\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"is_primary_key\": false,\n \"pii_classification\": \"none\",\n \"sample_values\": []\n }\n ],\n \"schema\": \"public\",\n \"pii_overrides\": {}\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/connectors/generate-transforms")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"connector_id\": \"<string>\",\n \"selected_tables\": [\n {\n \"table\": \"<string>\",\n \"columns\": [\n {\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"is_primary_key\": false,\n \"pii_classification\": \"none\",\n \"sample_values\": []\n }\n ],\n \"schema\": \"public\",\n \"pii_overrides\": {}\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"transforms": [],
"sync_config": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}connectors
Generate transforms or sync config for selected tables (T3.4, T3.7, T3.8)
For SQL connectors (postgres, mysql): generates dbt-compatible SELECT SQL per table applying PK renaming and PII hash/drop rules. For MongoDB: generates a YAML sync config dict (returned in sync_config).
PRD-005 T3.4, T3.7, T3.8
POST
/
connectors
/
generate-transforms
Generate transforms or sync config for selected tables (T3.4, T3.7, T3.8)
curl --request POST \
--url https://api.example.com/connectors/generate-transforms \
--header 'Content-Type: application/json' \
--data '
{
"connector_id": "<string>",
"selected_tables": [
{
"table": "<string>",
"columns": [
{
"name": "<string>",
"type": "<string>",
"is_primary_key": false,
"pii_classification": "none",
"sample_values": []
}
],
"schema": "public",
"pii_overrides": {}
}
]
}
'import requests
url = "https://api.example.com/connectors/generate-transforms"
payload = {
"connector_id": "<string>",
"selected_tables": [
{
"table": "<string>",
"columns": [
{
"name": "<string>",
"type": "<string>",
"is_primary_key": False,
"pii_classification": "none",
"sample_values": []
}
],
"schema": "public",
"pii_overrides": {}
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
connector_id: '<string>',
selected_tables: [
{
table: '<string>',
columns: [
{
name: '<string>',
type: '<string>',
is_primary_key: false,
pii_classification: 'none',
sample_values: []
}
],
schema: 'public',
pii_overrides: {}
}
]
})
};
fetch('https://api.example.com/connectors/generate-transforms', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/connectors/generate-transforms",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'connector_id' => '<string>',
'selected_tables' => [
[
'table' => '<string>',
'columns' => [
[
'name' => '<string>',
'type' => '<string>',
'is_primary_key' => false,
'pii_classification' => 'none',
'sample_values' => [
]
]
],
'schema' => 'public',
'pii_overrides' => [
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/connectors/generate-transforms"
payload := strings.NewReader("{\n \"connector_id\": \"<string>\",\n \"selected_tables\": [\n {\n \"table\": \"<string>\",\n \"columns\": [\n {\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"is_primary_key\": false,\n \"pii_classification\": \"none\",\n \"sample_values\": []\n }\n ],\n \"schema\": \"public\",\n \"pii_overrides\": {}\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/connectors/generate-transforms")
.header("Content-Type", "application/json")
.body("{\n \"connector_id\": \"<string>\",\n \"selected_tables\": [\n {\n \"table\": \"<string>\",\n \"columns\": [\n {\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"is_primary_key\": false,\n \"pii_classification\": \"none\",\n \"sample_values\": []\n }\n ],\n \"schema\": \"public\",\n \"pii_overrides\": {}\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/connectors/generate-transforms")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"connector_id\": \"<string>\",\n \"selected_tables\": [\n {\n \"table\": \"<string>\",\n \"columns\": [\n {\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"is_primary_key\": false,\n \"pii_classification\": \"none\",\n \"sample_values\": []\n }\n ],\n \"schema\": \"public\",\n \"pii_overrides\": {}\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"transforms": [],
"sync_config": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
application/json