Register a PySpark data asset
curl --request POST \
--url 'https://api-(organization).gable.ai/v0/data-asset/register/pyspark' \
--header 'Content-Type: application/json' \
--data '{
"assets": [
{
"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>"
},
"git_host": "github.com:gable/repo",
"spark_entrypoint": "<string>",
"spark_table": "<string>",
"project_name": "<string>"
}
],
"dry_run": false,
"prLink": "https://github.com/fakeorg/fakerepo/pull/123"
}'
{
"message": "<string>",
"registered": [
"<string>"
],
"success": true
}
PySpark Data Asset Registration Request
The body is of type object
.
Data Asset ID
The response is of type object
.
curl --request POST \
--url 'https://api-(organization).gable.ai/v0/data-asset/register/pyspark' \
--header 'Content-Type: application/json' \
--data '{
"assets": [
{
"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>"
},
"git_host": "github.com:gable/repo",
"spark_entrypoint": "<string>",
"spark_table": "<string>",
"project_name": "<string>"
}
],
"dry_run": false,
"prLink": "https://github.com/fakeorg/fakerepo/pull/123"
}'
{
"message": "<string>",
"registered": [
"<string>"
],
"success": true
}