Register data assets
curl --request POST \
--url 'https://api-(organization).gable.ai/v0/data-assets/register' \
--header 'Content-Type: application/json' \
--data '{
"assets": [
{
"source_type": "postgres",
"data_asset_resource_name": {
"source_type": "postgres",
"data_source": "<string>",
"path": "<string>"
},
"schema": {
"type": "struct",
"name": "<string>",
"fields": [
{
"type": "struct",
"name": "<string>",
"fields": [
"<any>"
],
"alias": "<string>",
"doc": "<string>",
"logical": "<string>",
"optional": true
}
],
"alias": "<string>",
"doc": "<string>",
"logical": "<string>"
},
"fieldNameToDataAssetFieldProfileMap": {}
}
],
"prLink": "https://github.com/fakeorg/fakerepo/pull/123"
}'
{
"asset_registration_outcomes": [
{
"data_asset_resource_name": {
"source_type": "postgres",
"data_source": "<string>",
"path": "<string>"
},
"error": "<string>"
}
]
}
Data Assets Registration Request
The body is of type object
.
Data Assets Registration Response
The response is of type object
.
curl --request POST \
--url 'https://api-(organization).gable.ai/v0/data-assets/register' \
--header 'Content-Type: application/json' \
--data '{
"assets": [
{
"source_type": "postgres",
"data_asset_resource_name": {
"source_type": "postgres",
"data_source": "<string>",
"path": "<string>"
},
"schema": {
"type": "struct",
"name": "<string>",
"fields": [
{
"type": "struct",
"name": "<string>",
"fields": [
"<any>"
],
"alias": "<string>",
"doc": "<string>",
"logical": "<string>",
"optional": true
}
],
"alias": "<string>",
"doc": "<string>",
"logical": "<string>"
},
"fieldNameToDataAssetFieldProfileMap": {}
}
],
"prLink": "https://github.com/fakeorg/fakerepo/pull/123"
}'
{
"asset_registration_outcomes": [
{
"data_asset_resource_name": {
"source_type": "postgres",
"data_source": "<string>",
"path": "<string>"
},
"error": "<string>"
}
]
}