Skip to main content
POST
/
v0
/
data-asset
/
ingest
Ingest a data asset from a schema
curl --request POST \
  --url https://{hostname}.gable.ai/v0/data-asset/ingest \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "sourceType": "postgres",
  "sourceNames": [
    "<string>"
  ],
  "databaseSchema": "<string>",
  "schema": [
    "<string>"
  ],
  "dryRun": false,
  "prLink": "https://github.com/fakeorg/fakerepo/pull/123"
}'
{
  "message": "<string>",
  "registered": [
    "<string>"
  ],
  "success": true
}

Authorizations

X-API-KEY
string
header
required

Body

application/json
sourceType
enum<string>
required
Available options:
postgres,
mysql,
mssql,
json_schema,
avro,
protobuf,
python,
pyspark,
typescript,
java,
s3,
dataframe,
kotlin,
swift,
php,
golang
sourceNames
string[]
required
databaseSchema
string
required
schema
string[]
required
dryRun
boolean
default:false
Example:

Response

message
string
required
registered
string[]
required
success
boolean
required