POST
/
v0
/
data-assets
/
register
cURL
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>"
    }
  ]
}

Body

application/json

Data Assets Registration Request

The body is of type object.

Response

200
application/json

Data Assets Registration Response

The response is of type object.